Files
kotlin-fork/compiler/testData/codegen/box/classes/kt723.kt
T
2021-08-01 22:23:40 +03:00

9 lines
216 B
Kotlin
Vendored

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