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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
static_method_call_classname_with_generics.php
blob
547608ee23a44ed01325cfdb336d3f6b90576bbc
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
interface
I
{
5
public function
f
():
void
;
6
}
7
8
final class
C
<
T
as
I
> {
9
public static function
g
(
T
$x
):
void
{
10
$x
->
f
();
11
}
12
}
13
14
function
test
(
int
$x
):
void
{
15
$c
=
C
::
class
;
16
$c
::
g
(
$x
);
17
}