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
/
decl
/
rewritten_tparams.php
blob
b8934d11352e43a457ecc923222721441213ed9f
1
<
?hh
2
3
final class
P
{
4
const
ctx C
= [];
5
}
6
7
function
f
(
8
(
function
()[
_
]:
void
)
$f
,
9
P
$v
10
)[
ctx
$f
,
$v
::
C
]:
void
{
11
print
"hi"
;
12
}
13
14
function
g
(
P
$v
)[
$v
::
C
]:
int
{
15
return
$v
;
16
}
17
18
function
h
(
19
?
(
function
()[
_
]:
void
)
$f
,
20
?P
$v
21
)[
ctx
$f
,
$v
::
C
]:
void
{
22
print
"hi"
;
23
}