PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/hphp/hack/test/typecheck/aktuple/array_map.php

http://github.com/facebook/hiphop-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
  1. <?hh //strict
  2. function take_vec_like(array<int> $a_): void {}
  3. function test(): void {
  4. take_vec_like(array_map($x ==> $x, varray[1, 2, 3]));
  5. }