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
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
yield_send2.php
blob
acb71311b40049369d532183adf1114c5c20d723
1
<
?hh
// partial
2
3
function
i
(
?
int
$x
):
void
{}
4
5
function
f
():
Generator
<
bool
,
string
,
int
> {
6
$x
=
yield
true
=>
'troo'
;
7
i
(
$x
);
8
}
9
10
function
g
():
void
{
11
$gen
=
f
();
12
$gen
->
send
(
'blah'
);
13
}