Fix issue with calling a unique, non-persistent method
[hiphop-php.git] / hphp / test / slow / hhbbc / static_props_013.php
blobe1c25263dce491487020fceeaa68d737643470af
1 <?hh
3 class A {
4 private static $x = null;
5 private static $y = "string";
7 public static function heh(int $i) {
8 self::$x[$i] = $i;
10 public static function getY() { return self::$y; }
11 public static function getX() { return self::$x; }
14 function main() {
15 $a = new A;
16 var_dump($a->heh(0));
17 var_dump($a->getY());
18 var_dump($a->getX());
20 main();