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
Check for void/noreturn in conditionals
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
poly_instance_method_explicit_type_args.php
blob
c76d27f8c11447f276186b450c0da3173f4dce35
1
<
?hh
// strict
2
3
class
Foo
{
4
public function
bar
<
T1
>(
T1
$x
):
T1
{
5
return
$x
;
6
}
7
}
8
9
function
f
():
int
{
10
$foo
=
new
Foo
();
11
$res
=
$foo
->
bar
<
int
>(
1
);
12
return
0
;
13
}