No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / list_array_assign.php
blob46a9049ca7a08930ece6141c80b4dc24ef12e8c7
1 <?hh // strict
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);