[FIR2IR] Consider isExpect flag for generated synthetic functions
It's actual for value classes ^KT-51969 Fixed
This commit is contained in:
committed by
Space Team
parent
4374ca390a
commit
12a083af25
@@ -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
|
||||
Reference in New Issue
Block a user