[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,25 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// MODULE: lib
// FILE: lib.kt
enum class A {
X {
val x = "OK"
inner class Inner {
val y = x
}
val z = Inner()
override val test: String
get() = z.y
};
abstract val test: String
}
// MODULE: main(lib)
// FILE: main.kt
fun box() = A.X.test