Files
kotlin-fork/compiler/testData/codegen/box/ir/serializationRegressions/dispatchReceiverValue.kt
T
2020-05-18 17:20:43 +02:00

20 lines
376 B
Kotlin
Vendored

// !LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND: JS_IR
// MODULE: lib
// FILE: common.kt
expect class C {
val value: String
fun test(result: String = value): String
}
// FILE: platform.kt
actual class C(actual val value: String) {
actual fun test(result: String): String = result
}
// MODULE: main(lib)
// FILE: main.kt
fun box() = C("Fail").test("OK")