New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / new_parent2.php
blob8399a607bb2fa7bd18a534dad25dcf34a79de685
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 class B {}
14 class A extends B {
16 public function foo(): void {}
18 public static function bar(): void {
19 $x = new parent();
20 $x->foo();
21 echo 'test';