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_err3.php
blob
baf536f762902dcfc600b7f9450ddb09584f7cb1
1
<
?hh
// strict
2
3
coroutine
function
f
((
function
():
int
)
$s
):
int
{
4
// not ok - argument to suspend is not a call to coroutine
5
$a
=
suspend
$s
();
6
return
1
;
7
}