mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
209 B
Kotlin
Vendored
11 lines
209 B
Kotlin
Vendored
operator fun Int?.inc(): Int? = this
|
|
|
|
fun init(): Int? { return 10 }
|
|
|
|
public fun box() : String {
|
|
var i : Int? = init()
|
|
val j = i++
|
|
|
|
return if (j == 10 && 10 == i) "OK" else "fail i = $i j = $j"
|
|
}
|