Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/IfNullDoWhileWithBreak.kt
T
2014-11-24 20:11:24 +03:00

15 lines
265 B
Kotlin
Vendored

fun foo() {
for (i in 1..10) {
val x = take()
if (x == null) {
do {
if (g()) break
} while (f())
}
<caret>x.hashCode()
}
}
fun take(): Any? = null
fun f(): Boolean{}
fun g(): Boolean{}