repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Check for void/noreturn in conditionals
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
suspend_operator_ok16.php
blob
ee2a39c23ae8e71125da9f42fc0f74ba4fa613db
1
<
?hh
// strict
2
3
class
A
{
4
public
coroutine
function
f
():
int
{
5
return
1
;
6
}
7
}
8
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
;
14
}
15
}