KT-3182 Prohibit val/var keywords at for-loop counter.
#KT-3182 fixed
This commit is contained in:
@@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user