global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / prop-access-error2.php
blob952fc24048586a6cb33a64385c7cc946ae0f5c8f
1 <?hh
3 class A {
4 protected $x = 1;
7 class B extends A {
8 protected $x = 2;
11 class C extends A {
12 public function test($obj) {
13 var_dump($obj->x);
17 function main() {
18 $b = new B;
19 $c = new C;
20 $c->test($b);
23 main();