Handle this typehints
[hiphop-php.git] / hphp / test / quick / setHelperPreError.php
blob864a59ba7c8befb6be82cee63fbf5cc9f584bf5f
1 <?hh
3 print "Test begin\n";
5 # BindM.
6 $v = array(0);
7 $w = 1;
8 $w[0] =& $v[0];
9 var_dump($v);
10 var_dump($w);
12 # FPassM.
13 function f(&$x) {
14 var_dump($x);
16 $x = 1;
17 f($x[0]);
18 var_dump($x);
20 # VGetM.
21 $y = 1;
22 $z = &$y[0];
23 var_dump($z);
25 print "Test end\n";