// IGNORE_BACKEND_FIR: JVM_IR interface A { fun foo(): T } class B : A { override fun foo() = "OK" } class C(a: A) : A by a fun box(): String { val a: A = C(B()) return a.foo() }