[K2, MPP] Support arguments with expect types in actual functions
This commit is contained in:
committed by
Space Team
parent
ec34b9fa7b
commit
ce7af9ff2b
Vendored
+24
@@ -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")
|
||||
Reference in New Issue
Block a user