make `Switch` constructor more precise
[hiphop-php.git] / hphp / test / slow / smultiprop-2.php.disabled
blobff8f9b39f80057009e6a514ed00155c79fc7a4a9
1 <?hh
3 class C {
4   static vec<int> $x = vec[];
5   static vec<Foo> $y = vec[];
8 class Foo {}
10 <<__EntryPoint>>
11 function main() {
12   C::$x[] = 17;
13   C::$y[] = new Foo();
15   $hg = heapgraph_create();
16   $static_props = Vector {};
18   heapgraph_foreach_node($hg, $node ==> {
19     if (idx($node, 'type') === 'HPHP::StaticPropData') {
20       $static_props[] = $node['class'].'::'.$node['prop'];
21     }
22   });
24   $static_props = vec($static_props);
25   sort(inout $static_props);
26   var_dump($static_props);