f98a22e8e4
Invert the logic of IR/FIR2IR-based generators: change the CLI argument to -Xuse-fir-fake-override-builder, test directive to USE_FIR_BASED_FAKE_OVERRIDE_GENERATOR, etc. The changes in test data caused by using IR fake override builder by default are in the subsequent commit. #KT-61514
32 lines
321 B
Kotlin
Vendored
32 lines
321 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// FILE: J.java
|
|
|
|
interface J extends I {
|
|
|
|
}
|
|
|
|
// FILE: E.kt
|
|
|
|
interface II {
|
|
fun foo() {}
|
|
}
|
|
|
|
interface I : II {
|
|
}
|
|
|
|
abstract class C: I {
|
|
override abstract fun foo()
|
|
}
|
|
|
|
abstract class D : C(), J {}
|
|
|
|
class E : D() {
|
|
override fun foo() {}
|
|
}
|
|
|
|
fun foo(x : I) {
|
|
x.foo()
|
|
}
|