// !LANGUAGE: +InlineClasses // IGNORE_BACKEND_FIR: JVM_IR inline class A(val s: String) interface B { fun f(x: T, y: U): String } interface L { fun f(x: T, y: A): String } interface R { fun f(x: A, y: T): String } open class C { open fun f(x: A, y: A): String = y.s } class D: C(), B, L, R { override fun f(x: A, y: A): String = x.s } fun box(): String { return (D() as B).f(A("OK"), A("Fail")) }