Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / suspend_operator_ok11.php
blobccc1d018773eb30c0d6c7741f062bfdeb5be17c4
1 <?hh // strict
3 function f((coroutine function(): int) $a): void {}
5 function b(): void {
6 // ok - pass coroutine lambda as coroutine typed value
7 f(coroutine () ==> 42);