Files
kotlin-fork/compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaMultiModule.kt
T
2023-06-23 16:44:49 +02:00

23 lines
446 B
Kotlin
Vendored

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