mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
12 lines
201 B
Kotlin
12 lines
201 B
Kotlin
fun String.inc() : String {
|
|
if (this == "") {
|
|
return "done"
|
|
}
|
|
var s = ""
|
|
return ++s
|
|
}
|
|
|
|
fun box() : String {
|
|
var s = "11test"
|
|
return if (++s == "done") "OK" else "FAIL"
|
|
} |