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
/
fun_contra.php
blob
b6901071f41c2c450d690308798c9e88bf362545
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
TakeFun
((
function
(
int
):
arraykey
)
$f
):
void
{
5
(
$f
)(
3
);
6
}
7
function
Pass
((
function
(
arraykey
):
int
)
$g
):
void
{
8
TakeFun
(
$g
);
9
}
10
function
DoIt
():
void
{
11
Pass
((
arraykey
$x
) ==>
5
);
12
}
13
/* HH_FIXME[1002] */
14
DoIt
();