Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / compile_test2.php
blob0d0f9c3506ed9d84ff739f1647fe94232c54fcf7
1 <?hh // strict
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the BSD-style license found in the
7 * LICENSE file in the "hack" directory of this source tree. An additional grant
8 * of patent rights can be found in the PATENTS file in the same directory.
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";