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
/
namespaced_classname.php
blob
4ff98da5cfbb317ae685d929ce1da2a791287f44
1
<
?hh
// strict
2
3
namespace
foo\bar
;
4
5
<<
__ConsistentConstruct
>>
6
class
Herp
{}
7
8
class
Derp
extends
Herp
{}
9
10
function
foo
<
T
as
Herp
>(
classname
<
T
>
$class
):
T
{
11
return new
$class
();
12
}
13
14
function
bar
(
Vector
<
string
>
$foo
):
void
{}
15
16
function
main
():
void
{
17
foo
(
Derp
::
class
);
18
}