Handle this typehints
[hiphop-php.git] / hphp / test / slow / bad-callable.php
blob00a03dacecccee938dfba6d94dd99f25608c068b
1 <?hh
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 class Bad {};
6 function foo1() { return array_map(new Bad(), []); }
7 function foo2() { return array_filter([], new Bad()); }
8 function foo3() { return array_reduce([], new Bad()); }
9 var_dump(foo1());
10 var_dump(foo2());
11 var_dump(foo3());