Partial body resolve filter: fixed nested loops case

This commit is contained in:
Valentin Kipyatkov
2014-11-21 12:47:01 +03:00
parent cc84e9682b
commit 8ccf56415a
4 changed files with 42 additions and 13 deletions
@@ -0,0 +1,12 @@
Resolve target: val x: kotlin.Any?
----------------------------------------------
fun foo() {
for (i in 1..10) {
val x = take()
// STATEMENT DELETED: if (x == null) { while (true) { do { println() } while(f()) break } }
<caret>x.hashCode()
}
}
fun take(): Any? = null
fun f(): Boolean{}