global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / fc_enum_9.php
blob1fc67a9d5766d954764f441ccfeedf94789e5f7d
1 <?hh
3 enum Foo : int as int {
4 WAT = 0;
5 FOO = 1;
6 BAR = 2;
7 BAZ = 3;
10 var_dump(Foo::assertAll(array(Foo::WAT, Foo::BAZ, Foo::BAR)));
11 var_dump(Foo::assertAll(array(Foo::WAT, 1, '3')));
12 var_dump(Foo::assertAll(array(Foo::WAT, 1, '300')));