No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / enum_eq_bad.php
blobb20d69c35c880bd2f08350f7b915908e905fcd1e
1 <?hh // strict
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 enum E: int {
5 A = 1;
6 B = 2;
9 enum F: int {
10 C = 2;
11 D = 3;
14 function TestIt(): void {
15 $x = E::A;
16 $y = F::C;
17 if ($x === $y) {
18 echo 'same';