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.php
blob
736da8ac1218f0ab68b10e7c8f98ce018837234a
1
<
?hh
2
3
function
foo
<
reify T
>(
T
$x
):
T
{
4
return
$x
;
5
}
6
7
function
test
(): (
function
(
int
):
int
) {
8
$y
=
foo
<
int
>;
9
10
$y
(
4
);
11
12
return
$y
;
13
}