[FIR] Reuse enhancement storage during creation of synthetic properies
^KT-61972 Fixed
This commit is contained in:
committed by
Space Team
parent
cec299ac0a
commit
97cf240450
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user