mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
6 lines
166 B
Kotlin
Vendored
6 lines
166 B
Kotlin
Vendored
fun box(): String {
|
|
operator fun Int?.inc() = (this ?: 0) + 1
|
|
var counter: Int? = null
|
|
counter++
|
|
return if (counter == 1) "OK" else "fail: $counter"
|
|
} |