3 * Copyright (c) 2014, Facebook, Inc.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
13 class A
implements I
{}
14 class B
implements I
{}
17 function foo(Vector
<I
> $x): void
{
20 function callA(A
$x): void
{}
22 function bar(): void
{
23 $x = Vector
{ new A() };