[FIR] Reuse enhancement storage during creation of synthetic properies

^KT-61972 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-09-18 12:00:24 +03:00
committed by Space Team
parent cec299ac0a
commit 97cf240450
8 changed files with 65 additions and 6 deletions
@@ -0,0 +1,28 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-61972
// FILE: Base.kt
interface Base {
val URL: String
}
// FILE: Derived.java
public class Derived implements Base {
private String value;
public Derived(String value) {
this.value = value;
}
@java.lang.Override
public String getURL() {
return value;
}
}
// FILE: main.kt
fun box(): String {
val d1 = Derived("O")
val d2 = Derived("K")
return d1.URL + d2.getURL()
}