Files
kotlin-fork/compiler/testData/codegen/box/super/superCallToNonGenericImplThroughGenericDefaultImpls.kt
T
Alexander Udalov 15ff74209c JVM IR: do not resolve fake override in InterfaceSuperCallsLowering
This leads to problems after 4dd794c2d2, because the immediate super
function's DefaultImpls and the implementation's DefaultImpls have
differing type parameters.

Looks like resolveFakeOverride was used here (maybe unintentionally) as
a workaround to the problem caused by the incorrect origin check in
isDefinitelyNotDefaultImplsMethod.
2020-02-10 16:08:10 +01:00

16 lines
243 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface A {
fun foo(o: String): String = o + "K"
}
interface B<T> : A
class C : B<Int> {
override fun foo(o: String): String {
return super<B>.foo(o)
}
}
fun box(): String = C().foo("O")