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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
list_array_assign.php
blob
46a9049ca7a08930ece6141c80b4dc24ef12e8c7
1
<
?hh
// strict
2
3
function
test
(
varray
<
int
>
$v
): (
varray
<
int
>,
int
,
int
) {
4
$a
=
list
(
$x
,
$y
) =
$v
;
// list returns an array, so the $a = list() is ok.
5
return
tuple
(
$a
,
$x
,
$y
);
6
}