Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / list_array_assign.php
blob6fe9977d92f76279a835fac8d11413f7b0ef0235
1 <?hh // strict
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);