Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / suspend_operator_ok15.php
blobe379157f8f69d12c6023edd945fb9e50abb214ca
1 <?hh // strict
3 class A {
4 public coroutine function f(): int {
5 return 1;
9 class B extends A {
10 public coroutine function g(): int {
11 // ok - call to coroutine instance method from the base class
12 $a = suspend parent::f();
13 return $a;