Handle this typehints
[hiphop-php.git] / hphp / test / quick / closure_class.php
blob4966ae78c367e2d1762e9dbed5c930b9787cf9ec
1 <?hh
3 trait A {
4 public function b() {
5 return function() {
6 return array(
7 __CLASS__,
8 get_class($this)
9 );
14 class C {
15 use A;
16 public function d() {
17 return function() {
18 return array(
19 __CLASS__,
20 get_class($this)
26 $c = new C;
27 $b = $c->b();
28 var_dump($b());
29 $d = $c->d();
30 var_dump($d());