No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / functional_xhp.php
blob2db31b94c11c78fbf2346c9931b8f699a4133081
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:xx extends XHPTest {
13 attribute Map<string, int> k;
16 class :x:xy {}
18 class A {}
20 function test(): void {
21 $x = <x:xx k={Map {}}></x:xx>;