Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / list_array4.php
blob8f1c113b10f10497f7d37196cdc90f6f878bc231
1 <?hh // partial
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 function g(int $i): void {}
14 function get_untyped_val() {
15 return array(1, 2);
18 function f(array $x): void {
19 list($x, $y) = get_untyped_val();
20 g($x);
21 g($y);