KT-4980 'Remove braces' intention throws NPE for a for-loop with variable declaration

#KT-4980 fixed
This commit is contained in:
Evgeny Gerashchenko
2014-07-08 11:40:11 +04:00
parent 86d2565700
commit 55ed0471b6
4 changed files with 19 additions and 2 deletions
@@ -0,0 +1,3 @@
fun foo(a: List<Int>) {
for<caret> (x in a) val y = x
}