global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / bad_setm_nopt.php
blobbd7d06459243c33ad4a7e1377e3d0f05e2e6fed8
1 <?hh
3 function test($a, $b, $c, $d, $e) {
4 $k = array();
5 foreach ($a as $id) {
6 $k[$id] = foo($id, $b, $c, $d, $e);
7 $k[$id] = foo($k[$id], $b);
11 function foo($a, $b) {
12 return $a ?: $b;
15 function main() {
16 test(array(array('foo'), array('bar'), array('baz')), null, 1, 2, 3);
19 main();