No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / shapes_cc_6.php
blob29e7126fb8d051e45b757404d246df86dea1c223
1 <?hh // strict
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 class X {
13 const string X1 = 'field1';
15 class Y {
16 const string X2 = 'field2';
19 // Should reject this because it uses two classes
20 type myshape = shape(
21 X::X1 => int,
22 Y::X2 => bool,