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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
funcall_explicit_arg.php
blob
9ddc1d207a694e910e4db0b3f9f00463de87d0c5
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
foo
<
T1
,
T2
>(
T1
$x
) :
T1
{
5
return
$x
;
6
}
7
8
function
bar
() :
int
{
9
return
foo
<
int
,
string
>(
5
);
10
}