repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Pessimize bounds on type parameters when substituting wildcard type arguments
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
like_types
/
pessimization
/
is_wildcard.php
blob
5c17de1e36e7e4ad5e7a5b370cadde98e30d1356
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
C
<
T
as
arraykey
> {}
5
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
);
11
}
12
}