Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / newtype2.php
blobd9028312a248554f64848249af6b28a27b533ddd
1 //// file1.php
3 <?hh
4 /**
5 * Copyright (c) 2014, Facebook, Inc.
6 * All rights reserved.
8 * This source code is licensed under the BSD-style license found in the
9 * LICENSE file in the "hack" directory of this source tree. An additional grant
10 * of patent rights can be found in the PATENTS file in the same directory.
14 newtype a as int = int;
16 //// file2.php
18 <?hh
20 function test(a $x): void {}
21 function test2(a $x): void {
22 test($x);