Files
kotlin-fork/backend.native/tests/external/codegen/box/statics/kt8089.kt
T
2018-08-14 15:05:24 +03:00

22 lines
347 B
Kotlin

class C {
@kotlin.native.ThreadLocal
companion object {
private val s: String
private var s2: String
init {
s = "O"
s2 = "O"
}
fun foo() = s
fun foo2() = s2
fun bar2() { s2 = "K" }
}
}
fun box(): String {
return C.foo() + {C.bar2(); C.foo2()}()
}