No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / shapes_cc_10.php
blob4e83fb7b6898050bb073a8fb8cd0f7070ad20073
1 //// def.php
2 <?hh // strict
4 newtype FooType = int;
5 class X {
6 const FooType X1 = 0;
7 const FooType X2 = 1;
10 //// use.php
11 <?hh // strict
13 // Reject: type of keys is opaque
14 type myshape = shape(X::X1 => int, X::X2 => bool);