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
Fix memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
hh_typehint4.php
blob
048943be82e9287c17de2af6f6400786004b18ec
1
<
?hh
2
3
function
foo
(
?
(
int
,
int
)
$x
) {}
4
5
foo
(
null
);
6
foo
(
array
(
1
,
2
));
7
foo
(
array
(
1
,
2
,
3
));
// ok: typechecker validates it
8
foo
(
new
stdclass
);