3 interface InterfaceFoo
{
4 public function genVisit
<reify T
>(
9 final class Visitor
implements InterfaceFoo
{
10 protected int $counter = 0;
12 public async
function genVisit
<reify T
>(
19 async
function bar(InterfaceFoo
$o) {
21 await
$o->genVisit
<int>($i);
25 async
function main() {
26 $visitor = new Visitor();