Arquivos
hhvm/hphp/test/quick/hh_classes2.php
T
Alok Menghrajani db9577b140 Rename strict with Hack
Strict mode was the old name. Let's avoid any confusion in the future and rename things.
2013-05-15 13:05:03 -07:00

15 linhas
207 B
PHP

<?hh
class :x:frag {}
class Foo {
private :x:frag $c;
protected :x:frag $b;
public :x:frag $a;
public static function bar(:x:frag $x): :x:frag {
return $x;
}
}
print_r(Foo::bar(<x:frag/>));