[FIR] Fix references to generic synthetic properties
When synthetic properties are built from a substitution override, set originalForSubstitutionOverride, too. ^KT-56251 Fixed
This commit is contained in:
committed by
Space Team
parent
37760d1f2a
commit
b80970b09f
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// ENABLE_JVM_PREVIEW
|
||||
|
||||
// FILE: R.java
|
||||
|
||||
public record R<T>(T value) {}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(): String {
|
||||
val r = R("OK")
|
||||
if (r.value != "OK") return "FAIL"
|
||||
if (run(r::value) != "OK") return "FAIL"
|
||||
if (r.let(R<String>::value) != "OK") return "FAIL"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user