2 // Copyright 2004-present Facebook. All Rights Reserved.
4 class C
<T
as arraykey
> {
5 public static function nongeneric(T
$x): T
{
8 public static function generic
<Tu
>(T
$x, Tu
$y): (T
, Tu
) {
11 public static function genericConstrained
<Tu
as arraykey
>(
19 function testindirect1(bool $b): bool {
25 function testindirect2(float $f, vec
<int> $v): (float, vec
<int>) {
30 function testindirect3(float $f, vec
<int> $v): (float, vec
<int>) {
31 $g = C
::genericConstrained
<>;