compiler: fix check restricted names in for..in statement

pull/3539/head^2
Henrixounez 2020-01-23 21:06:57 +01:00 committed by Alexander Medvednikov
parent c8c43a2475
commit f3f50349b2
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ fn (p mut Parser) for_st() {
} }
// `for val in vals` // `for val in vals`
else if p.peek() == .key_in || p.peek() == .left_arrow { else if p.peek() == .key_in || p.peek() == .left_arrow {
p.check_not_reserved()
val := p.check_name() val := p.check_name()
p.fspace() p.fspace()
//p.check(.key_in) //p.check(.key_in)