mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
For each non-abstract non-declared (i.e. inherited from supertypes) method in an interface we generate its static form to the TImpl, which calls the TImpl method from the corresponding supertype. The accidental override tests changed because we're now trying to generate the delegate for the super method, not knowing that it will clash with the declared method #KT-2888 Fixed #KT-5393 Fixed
14 lines
265 B
Kotlin
Vendored
14 lines
265 B
Kotlin
Vendored
interface A {
|
|
fun foo(): String
|
|
}
|
|
|
|
interface B {
|
|
fun foo(): String = "OK"
|
|
}
|
|
|
|
interface C : A, B
|
|
|
|
// There's no 'foo' in A$$TImpl, proguard and other tools may fail if we generate calls to it
|
|
// 0 INVOKESTATIC A\$\$TImpl.foo
|
|
// 1 INVOKESTATIC B\$\$TImpl.foo
|