Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / switch_fallthrough13.php
blobddc92be39c7ff932ecdb1008196195ac945f2b97
1 <?hh //strict
3 class A {
4 protected static function invariant_violation(): noreturn {
5 //UNSAFE
9 class B extends A {
10 public function f(int $x): void {
11 switch ($x) {
12 case 0:
13 echo "zero";
14 parent::invariant_violation();
15 default:
16 echo "more";