1
0
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:
Henrixounez 2020-01-23 21:06:57 +01:00 committed by Alexander Medvednikov
parent c8c43a2475
commit f3f50349b2

View File

@ -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)