global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / lsb_static.php
blobbff75197c0aa3dec16dde9ef4c770a02b0665cf4
1 <?hh
3 class A {
4 <<__LSB>> private static string $x = null;
6 static function foo($v) {
7 if (static::$x === null) static::$x = $v;
8 var_dump(static::$x);
12 class B extends A {
13 static function bar() {
14 var_dump(static::$x);
18 class C extends B {
21 A::foo("A");
22 B::foo("B");
23 C::foo("C");
25 A::foo("");
26 B::foo("");
27 C::foo("");
29 B::bar();