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
/
anon16.php
blob
e8d7e6f8383d3d7c8f7225f2c25e9cea587a28b9
1
<
?hh
// strict
2
3
function
expect_mixed_func
((
function
():
mixed
)
$func
):
void
{}
4
5
function
test
():
void
{
6
$func
= ():
int
==>
1
;
7
expect_mixed_func
(
$func
);
8
}