Handle this typehints
[hiphop-php.git] / hphp / test / quick / impl_abstract_dv_3a.php
blob58826ed7a72786584a2ac89f103a37944e7ccfae
1 <?hh
2 abstract class A { abstract public function foo(int $x); }
3 interface I { function foo(int $x); }
4 abstract class B extends A implements I { }
5 class C extends B { public function foo(array $x = null) {} }
6 $c = new C;
7 $c->foo(null);
8 echo "OK\n";