Add is_declaration to SymbolOccurrence
[hiphop-php.git] / hphp / hack / test / infer_return_types / traits.php
blobb3164ed5d37e92ed2191cf729ac89c3d8f539bc9
1 <?hh
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the BSD-style license found in the
7 * LICENSE file in the "hack" directory of this source tree. An additional grant
8 * of patent rights can be found in the PATENTS file in the same directory.
12 trait MyTrait {
13 // We don't currently do a good job inferring the types of member variables
14 // defined in traits. This test is currently just making sure we don't totally
15 // explode.
16 protected $x;
19 class C {
20 use MyTrait;