/hphp/hack/test/typecheck/aktuple/array_map.php
PHP | 7 lines | 5 code | 2 blank | 0 comment | 0 complexity | afe55b49b03bc9a82b8c8ee760e7976b MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh //strict
- function take_vec_like(array<int> $a_): void {}
- function test(): void {
- take_vec_like(array_map($x ==> $x, varray[1, 2, 3]));
- }