No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / traversable_foreach2.php
blob90d33317035c15e65d682ebf5ead38d7ad2ef3a7
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 /* HH_FIXME[4101] */
13 function foo2(Traversable $p) {
14 foreach ($p as $k => $v) {
15 f1($k);
16 f2($v);
20 function f1(int $k) {}
22 function f2(string $v) {}