Files
kotlin-fork/compiler/testData/codegen/box/properties/kt613.kt
T
2016-11-09 21:41:12 +03:00

19 lines
344 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
package name
class Test() {
var i = 5
val ten = 10.toLong()
fun Long.t() = this.toInt() + i++ + ++i
fun tt() = ten.t()
}
fun box() : String {
var m = Test()
return if((m.i)++ == 5 && ++(m.i) == 7 && m.tt() == 26) "OK" else "fail"
}