[FIR2IR] Consider isExpect flag for generated synthetic functions

It's actual for value classes

^KT-51969 Fixed
This commit is contained in:
Ivan Kochurkin
2023-02-02 21:10:35 +01:00
committed by Space Team
parent 4374ca390a
commit 12a083af25
4 changed files with 37 additions and 1 deletions
@@ -0,0 +1,19 @@
// ISSUE: KT-51969
// !LANGUAGE: +MultiPlatformProjects
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
// MODULE: common
// TARGET_PLATFORM: Common
// FILE: expect.kt
expect value class ExpectValue(val x: String)
// MODULE: main()()(common)
// TARGET_PLATFORM: JVM
// FILE: actual.kt
@JvmInline
actual value class ExpectValue actual constructor(actual val x: String)
fun box() = ExpectValue("OK").x