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
Basic flow analysis on if statements
[hiphop-php.git]
/
hphp
/
test
/
slow
/
generator_return_throws_when_unfinished.php
blob
9b8783977e90f31fdb7835e708cd11cae827fd35
1
<
?hh
2
3
function
gen
() {
4
yield
1
;
yield
2
;
yield
3
;
5
return
11
;
6
}
7
<<
__EntryPoint
>>
function
main
():
void
{
8
$g
=
gen
();
9
10
$g
->
next
();
11
12
var_dump
(
$g
->
getReturn
());
13
}