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

15 lines
263 B
Kotlin
Vendored

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