No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / compile_test2.php
blob289166d666a6561334befe0e103cd02d131d355d
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 function main(): void {
13 $x = 1;
14 $y = 'test';
15 if("this$x$y" === 'this1test') {
16 echo 'OK';
18 else {
19 echo 'FAILURE: test2.1 ', "this$x$y";