Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / strict_call_tany2.php
blobc2260c081989412bf68ab0c66e3df127539b4d36
1 //// partial.php
2 <?hh // partial
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 class C {
14 public function any() {}
17 //// strict.php
18 <?hh // strict
20 function f(): void {
21 $c = new C();
22 $c->any()->foo();