mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
8 lines
169 B
Kotlin
Vendored
8 lines
169 B
Kotlin
Vendored
operator fun String.unaryPlus() : String {
|
|
if (this == "") {
|
|
return "done"
|
|
}
|
|
return +""
|
|
}
|
|
|
|
fun box() : String = if (+"11" == "done") "OK" else "FAIL" |