sync the repo
[hiphop-php.git] / hphp / hack / test / typecheck / foreach_vector.php
bloba9df91ca8163b3cbf20a5bd0df5cc899192ed598
1 <?hh
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 class Foo {
14 public function bar(): void {}
18 function f(Vector<Foo> $v): void {
19 foreach ($v as $foo) {
20 $foo->bar();
21 $x = $foo + 5;