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
/
classname
/
typename_no_call.php
blob
9834c8e286e6c8173084a0594cae49ff6ea9fcc9
1
<
?hh
// strict
2
3
class
C
{
4
public static function
foo
():
void
{}
5
}
6
7
type CAlias
=
C
;
8
9
function
new_c
(
classname
<
CAlias
>
$c
):
void
{
10
$c
::
foo
();
11
}
12
13
function
bad_new_c
(
typename
<
CAlias
>
$c
):
void
{
14
$c
::
foo
();
15
}