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