Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / suspend_operator_ok16.php
blobee2a39c23ae8e71125da9f42fc0f74ba4fa613db
1 <?hh // strict
3 class A {
4 public coroutine function f(): int {
5 return 1;
9 class B extends A {
10 // ok - override coroutine method from the base class with coroutine method
11 <<__Override>>
12 public coroutine function f(): int {
13 return 2;