Files
kotlin-fork/js/js.translator/testData/box/initialize/rootValInit.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

17 lines
247 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1116
package foo
class A(val a: Int)
class Empty
val x = 1
val a = A(2)
val e = Empty()
fun box(): String {
if (x != 1) return "x != 1, it: $x"
if (a.a != 2) return "a.a != 2, it: ${a.a}"
return "OK"
}