Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / namespace_global_class2.php
blobc4fe18a7fb3d7877c176e3cfbc772ca47ee2ae47
1 //// global.php
3 <?hh // strict
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 class C {}
16 //// local.php
18 <?hh // strict
20 namespace N {
21 function f(): void {
22 new C();