add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / late_static_binding / 1881.php
blobb37ea27937990dd09c4ef84b359cc0a264ff42d6
1 <?php
3 class A {
4 static function f() {
5 return new static;
7 static function g($o) {
8 return $o instanceof static;
11 class B extends A {
13 var_dump(A::g(A::f()));
14 var_dump(A::g(B::f()));
15 var_dump(B::g(A::f()));
16 var_dump(B::g(B::f()));