[JVM_IR] Don't add synthetic accessor when processing function reference

The issue appeared after code refactoring. Originally we didn't
save generated accessor for symbols in `IrFunctionReference`. These
symbols will be processed in their own turn.

#KT-59079 Fixed
This commit is contained in:
Ivan Kylchik
2023-06-06 16:32:09 +02:00
committed by Space Team
parent 456783436c
commit f74fd947b3
6 changed files with 56 additions and 8 deletions
+26
View File
@@ -0,0 +1,26 @@
// WITH_STDLIB
// LANGUAGE: +ValueClasses
// TARGET_BACKEND: JVM_IR
// FILE: a.kt
@JvmInline
value class IC(val x: String)
class C(val ic: IC)
// FILE: b.kt
fun foo(action: (ic: IC) -> C): C {
return action(IC("OK"))
}
fun test(): C {
return foo(::C)
}
// FILE: c.kt
fun box(): String {
return test().ic.x
}