KT-57103 Don't inline references to generic synthetic Java properties in K1
This commit is contained in:
committed by
Space Team
parent
5ddd60a015
commit
9db5ea66a6
-2
@@ -1,6 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K1: JVM_IR
|
||||
// K1_STATUS: Broken because of KT-57103
|
||||
|
||||
// FILE: J.java
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
// !LANGUAGE: +ReferencesToSyntheticJavaProperties
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// FILE: J.java
|
||||
|
||||
public class J<T> {
|
||||
private final T value;
|
||||
public J(T value) {
|
||||
this.value = value;
|
||||
}
|
||||
public T getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public T foo() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(): String {
|
||||
val j = J("OK")
|
||||
return run(j::value)
|
||||
}
|
||||
Reference in New Issue
Block a user