Files
kotlin-fork/compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt
T
Mikhail Glukhikh 0d8f3a6026 K2: generate Java synthetics for Kotlin get/sets w/out type parameters
This commit is a follow-up to d8a20f19 and
provides additional K1 compatibility.
#KT-59550 Fixed
2023-06-23 16:44:50 +02:00

19 lines
385 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// 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