11 lines
188 B
Kotlin
Vendored
11 lines
188 B
Kotlin
Vendored
fun foo(x: String): String {
|
|
var y: String
|
|
do {
|
|
y = x
|
|
} while (y != x.bar(x))
|
|
return y
|
|
}
|
|
|
|
inline fun String.bar(other: String) = this
|
|
|
|
fun box(): String = foo("OK") |