global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / priv2.php
blob105c300b2b3289c45c45bc6d82f278b82c624791
1 <?hh
2 class C {
3 private function foo() {
4 echo "C::foo\n";
6 public function test() {
7 // This should not call C::foo, it should fatal
8 D::foo();
11 class D extends C {
12 private function foo() {
13 echo "D::foo\n";
16 $obj = new C;
17 $obj->test();