Files
kotlin-fork/js/js.translator/testData/box/initialize/rootValInit.kt
T
2018-09-12 09:49:25 +03:00

17 lines
247 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1288
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"
}