global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / undefined-bases.php
blobc2f89bdba354c5f70ff6808ec3467d687d2b5cd4
1 <?hh
4 function id($x) { return $x; }
6 class c {}
8 function main() {
9 $name = 'varname';
11 $x = $undef['foo'];
13 $x = $GLOBALS[$name]['foo'];
14 $x = $GLOBALS[id($name)]['foo'];
16 main();