Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / instanceof_parent.php
blob7c8d1cb2bcb68c8b6965e47d7917b0b11efabb0e
1 <?hh // strict
3 class D {
4 public function g(): void {
5 echo __METHOD__, "\n";
9 class C extends D {
11 public function g(): void {
12 echo __METHOD__, "\n";
15 public static function test(mixed $x): void {
16 if ($x instanceof parent) {
17 hh_show($x);
18 $x->g();
20 return;