global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / class_class_constant.php
blobb9f4df4ddb2bc381273e02f2649c4020ce7cb076
1 <?hh
3 class Class1 {
6 class Class2 {
7 <<Attribute(Class1::class)>> // Should allow builtin class class constant
8 public function index() {}
11 function get_attributes(): void {
12 $rc = new ReflectionClass("Class2");
13 var_dump($rc->getMethods()[0]->getAttributes()["Attribute"]);
16 echo get_attributes();