Files
kotlin-fork/js/js.translator/testData/expression/misc/cases/exclExclResultIsComputedOnce.kt
T
2014-03-11 20:04:00 +04:00

12 lines
151 B
Kotlin

package foo
var c = 0
val a: Int?
get() {
c++
return 2
}
fun box(): Boolean {
return c == 0 && (a!! + 3) == 5 && c == 1
}