No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / fc_enum_case_11.php
bloba28b13e14073892cd3d85edcc7968ee3ca392769
1 <?hh // strict
3 enum MyEnum: string {
4 A = 'a';
5 B = 'b';
8 function f(MyEnum $e): void {
9 // Force to be Tvar/Tunion
10 if (true) {
11 $e = MyEnum::A;
14 switch ($e) {
15 case MyEnum::A: break;