Fix issue with calling a unique, non-persistent method
[hiphop-php.git] / hphp / test / slow / hhbbc / array_052.php
blob081b6d3df283c066445536fd40745392a9619ea4
1 <?php
3 class A { public function yo() { echo "hi\n"; } }
5 function foo() {
6 $x = array(array(new A));
7 for ($i = 0; $i < 10; ++$i) {
8 $x[][] = new A;
10 return $x;
12 function main() {
13 $val = foo()[1][0];
14 var_dump($val);
15 $val->yo();
17 main();