Files
kotlin-fork/js/js.translator/testData/box/initialize/rootPackageValInit.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

12 lines
205 B
Kotlin
Vendored

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