Pessimize bounds on type parameters when substituting wildcard type arguments
[hiphop-php.git] / hphp / hack / test / typecheck / like_types / pessimization / is_wildcard.php
blob5c17de1e36e7e4ad5e7a5b370cadde98e30d1356
1 <?hh // strict
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 class C<T as arraykey> {}
6 function f(mixed $x): void {
7 if ($x is C<_>) {
8 // We expect $x to be C<T#1> where T#1 has the same bounds
9 // as T in C's declaration
10 hh_show($x);