global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / class_abstract_final3.php
blobd12b419fc4eda13b19d8a937b5263bbd445f134e
1 <?hh
3 class C {
4 public function nonStaticInheritedMethod() {
5 echo __METHOD__, ' of ', static::class, "\n";
6 echo 'this: ', isset($this) ? 'defined' : 'undefined', "\n";
10 trait Tr {
11 require extends C;
13 public function nonStaticTraitMethod() {
14 echo __METHOD__, ' of ', static::class, "\n";
15 echo 'this: ', isset($this) ? 'defined' : 'undefined', "\n";
17 public static function staticTraitMethod() {
18 echo __METHOD__, "\n";
21 abstract static function noGood();
24 abstract final class Utils extends C {
25 use Tr;
27 public static function staticMethod() {
28 echo __METHOD__, "\n";
32 main();
33 echo 'Done', "\n";