Files
kotlin-fork/compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt
T
Alexander Udalov 21d56d04d6 Tests: reclassify some failures in fake override rebuilder tests
See issues for more information: KT-61751, KT-61804, KT-61805, KT-61370.
2023-09-13 15:01:52 +02:00

20 lines
446 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: KT-61805
// ISSUE: KT-59550
// FILE: Intermediate.java
public class Intermediate extends Base {
public Intermediate(String foo) {
super(foo);
}
}
// FILE: FinalAndBase.kt
abstract class Base(private val foo: String) {
fun getFoo() = foo
}
class Final(val i: Intermediate) : Intermediate(i.foo)
fun box(): String = Final(Intermediate("OK")).foo