2 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
5 public function takes_t
<T
>(T
$v): void
;
8 class C1
<T
> implements I1
{
9 public function __construct(
10 public (function(T
): void
) $checkFn,
13 public function takes_t(T
$v): void
{
14 $check_fn = $this->checkFn
;
19 function takes_i1(I1
$i): void
{
24 function create_c1(): void
{
25 $c = new C1((int $_) ==> {}); // inferred as C1<nothing>