Files
kotlin-fork/compiler/testData/codegen/box/staticFields/objectInc.kt
T
Michael Bogdanov c7b1c0fe52 Store refactoring
#KT-1213 Fixed
2014-11-20 10:20:11 +03:00

14 lines
197 B
Kotlin

object A {
private var r: Int = 1;
fun a() : Int {
r++
++r
return r
}
}
fun box() : String {
val p = A.a()
return if (p == 3) return "OK" else "fail"
}