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
Add binary field to deepcopy test
[hiphop-php.git]
/
hphp
/
test
/
quick
/
hh_softtype4.php
blob
e0a16a4bb2a01da4abe5de3a282b02a6e1f49cdf
1
<
?hh
2
3
function
foo
(<<
__Soft
>> (
int
,
int
)
$x
) :
mixed
{}
4
<<
__EntryPoint
>>
function
main
():
void
{
5
foo
(
null
);
6
foo
(
vec
[
1
,
2
]);
7
foo
(
vec
[
1
,
2
,
3
]);
// ok: typechecker validates it
8
foo
(
new
stdClass
);
9
}