New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / fc_enum_3.php
blobcace3b0e074c79f196d9e58fb66539a289a615a5
1 <?hh // strict
3 // Should fail because no constraint
5 enum Foo: int {
6 FOO = 1;
7 BAR = 2;
8 BAZ = 3;
11 function test(): Foo {
12 return Foo::FOO;
15 function test2(int $x): void {}
17 function lurr(): void {
18 test2(Foo::BAR);