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