KT-3182 Prohibit val/var keywords at for-loop counter.

#KT-3182 fixed
This commit is contained in:
Evgeny Gerashchenko
2013-02-12 02:19:20 +04:00
parent 882c2cb28d
commit 808dbd160c
5 changed files with 26 additions and 0 deletions
@@ -0,0 +1,9 @@
fun f() {
for (<!VAL_OR_VAR_ON_LOOP_PARAMETER!>val<!> i in 1..4) {
}
for (<!VAL_OR_VAR_ON_LOOP_PARAMETER!>var<!> i in 1..4) {
}
}