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
Updating submodules
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
function_pointer
/
reified_targs_newable2.php
blob
c3cf89fa04e6fe28aa1cb41302990bd382da7d6e
1
<
?hh
2
3
final class
A
<
reify T
> {}
4
5
function
foo
<<<__Newable>> reify T as A<string>>(): dynamic {
6
return new T();
7
}
8
9
function test(): void {
10
$x
= foo<A<string>>;
11
12
$y
= foo<A<int>>;
13
}