global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / inherit-static-local.php
blob3809f4ad88cff341425ed873137a95692f271039
1 <?hh
3 class C {
4 public static function foo() {
5 static $x = 0;
6 ++$x;
7 var_dump($x);
10 class D extends C {
11 public static function callByParent() {
12 parent::foo();
16 C::foo();
17 C::foo();
18 C::foo();
19 D::foo();
20 D::foo();
22 D::callByParent();
23 D::callByParent();