mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: fix check restricted names in for..in statement
This commit is contained in:
parent
c8c43a2475
commit
f3f50349b2
@ -129,6 +129,7 @@ fn (p mut Parser) for_st() {
|
||||
}
|
||||
// `for val in vals`
|
||||
else if p.peek() == .key_in || p.peek() == .left_arrow {
|
||||
p.check_not_reserved()
|
||||
val := p.check_name()
|
||||
p.fspace()
|
||||
//p.check(.key_in)
|
||||
|
Loading…
Reference in New Issue
Block a user