6 <<__Rx
, __OnlyRxIfImpl(Rx
::class)>>
7 public function f(): int {
10 <<__Rx
, __OnlyRxIfImpl(Rx
::class)>>
11 public static function f1(): int {
16 class B
extends A
implements Rx
{
18 public function g(): int {
19 // OK to call static and instance methods
20 return parent
::f() + parent
::f1();
23 public static function g1(): int {