KT-552 For variable unresolved if loop body is not block

===
for(index in 0..9)
   x[index] = index.byt // <-- index is inresolved here
===
This commit is contained in:
Stepan Koltsov
2011-11-28 17:06:22 +04:00
parent afd8981c00
commit 690efbb39a
2 changed files with 10 additions and 1 deletions
@@ -0,0 +1,8 @@
// http://youtrack.jetbrains.net/issue/KT-552
// KT-552 For variable unresolved if loop body is not block
fun ff() {
var i = 1
for (j in 1..10)
i += j
}