Handle this typehints
[hiphop-php.git] / hphp / test / quick / trait_two_use_closure.php
blob6664769133d194acb5325dfc28e1780434b0a111
1 <?hh
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();