global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / method3.php
blob504d3c4f17244da5fe5e77212aaa7f8853ca0210
1 <?hh
3 abstract class A {
4 protected abstract function foo();
7 class B extends A {
8 protected function foo() {
9 echo "B::foo\n";
13 class C extends A {
14 function foo() {
15 $b = new B;
16 $b->foo();
20 $c = new C;
21 $c->foo();