Files
kotlin-fork/backend.native/tests/external/codegen/box/classes/kt723.kt
T
2017-03-13 15:31:46 +03:00

9 lines
223 B
Kotlin

operator fun Int?.inc() : Int { if (this != null) return this.inc() else throw NullPointerException() }
public fun box() : String {
var i : Int? = 10
val j = i++
return if(j==10 && 11 == i) "OK" else "fail"
}