Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / namespace_global_function1.php
blobdb5efd7946965b3a73f1a47e106678cf63cc33f4
1 //// global.php
2 <?hh // strict
3 /**
4 * Copyright (c) 2014, Facebook, Inc.
5 * All rights reserved.
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the "hack" directory of this source tree.
13 function f(): void {}
15 //// local.php
16 <?hh // strict
18 namespace N {
19 function g(): void {
20 \f();