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
Check for void/noreturn in conditionals
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
list_array_assign.php
blob
6fe9977d92f76279a835fac8d11413f7b0ef0235
1
<
?hh
// strict
2
3
function
test
(
array
<
int
>
$v
): (
array
<
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
}