[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:
Kirill Rakhman
2023-03-02 10:54:04 +01:00
committed by Space Team
parent 37760d1f2a
commit b80970b09f
14 changed files with 124 additions and 15 deletions
@@ -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"
}