Fix memoization of functions called with keyset arguments
[hiphop-php.git] / hphp / test / quick / trait_two_use_closure.php
blob1b74b0b50b4947e1864ee20c615652a31ff22765
1 <?php
3 trait A {
4 function b() {
5 $c = function() {
6 return 'd';
7 };
8 var_dump($c);
9 return $c();
13 class E { use A; }
14 class F { use A; }
16 function main() {
17 var_dump((new E)->b());
18 var_dump((new F)->b());
21 main();