Add binary field to deepcopy test
[hiphop-php.git] / hphp / test / quick / methodcache_case.php
blob5750f2524d3cbf60c588e18b1f6acdf4d9df9b08
1 <?hh
3 abstract class one {
4 abstract protected function foo():mixed;
7 class a extends one {
8 protected function foo() :mixed{ echo "a\n"; }
11 class c extends one {
12 protected function foo() :mixed{ echo "c\n"; }
14 public function go($x) :mixed{
15 $x->foo();
19 <<__EntryPoint>> function main(): void {
20 $a = new a;
21 $c = new c;
22 $c->go($a); // fill
23 $c->go($a); // hit
24 $c->go($c); // would call with not AttrPublic
25 $c->go($c); // hit
26 $c->go($a); // would call, not attr public