Files
kotlin-fork/backend.native/tests/external/codegen/box/controlStructures/breakContinueInExpressions/kt14581.kt
T
2017-03-13 15:31:46 +03:00

11 lines
188 B
Kotlin

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")