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
Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
suspend_operator_ok11.php
blob
ccc1d018773eb30c0d6c7741f062bfdeb5be17c4
1
<
?hh
// strict
2
3
function
f
((
coroutine
function
():
int
)
$a
):
void
{}
4
5
function
b
():
void
{
6
// ok - pass coroutine lambda as coroutine typed value
7
f
(
coroutine
() ==>
42
);
8
}