[JS IR] Add serialization regressions tests

This commit is contained in:
Svyatoslav Kuzmich
2020-01-10 14:46:57 +03:00
parent fbf71be30c
commit 1333267983
11 changed files with 340 additions and 0 deletions
@@ -0,0 +1,20 @@
// !LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND_FIR: JVM_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")