Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / test_inter4.php
blobea5a5ee27c94d5de3e776d7555633c5f01f47f61
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 interface I {}
13 class A {}
14 class B implements I {}
16 function foo(): Vector<I> {
17 $x = Vector { new A(), new B() };
18 return $x;