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_in_finally.php
blob
f7528a3ecaf18c2822b48d6bb07cf2164ba223c2
1
<
?hh
// strict
2
3
function
f
() {
4
$c
=
coroutine
function
(
$a
,
$someCoroutine
) {
5
try
{
6
print
1
;
7
}
finally
{
8
while
(
$a
) {
9
$a
=
10
+ suspend
$someCoroutine
();
10
}
11
}
12
};
13
}