[K2, MPP] Support arguments with expect types in actual functions

This commit is contained in:
Ivan Kochurkin
2023-03-08 18:01:01 +01:00
committed by Space Team
parent ec34b9fa7b
commit ce7af9ff2b
8 changed files with 81 additions and 16 deletions
@@ -0,0 +1,24 @@
// TARGET_BACKEND: JVM
// !LANGUAGE: +MultiPlatformProjects
// MODULE: common0
// TARGET_PLATFORM: Common
// FILE: common0.kt
expect fun f0(s: S): S
expect class S
// MODULE: common1()()(common0)
// TARGET_PLATFORM: Common
// FILE: common1.kt
actual fun f0(s: S): S = s
// MODULE: jvm()()(common1)
// TARGET_PLATFORM: JVM
// FILE: jvm.kt
actual typealias S = String
fun box() = f0("OK")