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
Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
fc_enum_classname.php
blob
d27d922e4ae0f8287fc7bc4f57142eaf12aa9620
1
<
?hh
// strict
2
3
class
Foo
{
4
public static function
x
():
void
{}
5
}
6
7
class
Bar
extends
Foo
{}
8
9
enum E
:
classname
<
Foo
>
as
classname
<
Foo
> {
10
FOO
=
Foo
::
class
;
11
Bar
=
Bar
::
class
;
12
}
13
14
function
f
():
void
{
15
$cls
=
E
::
FOO
;
16
$cls
::
x
();
17
}