From f3f50349b27766c8dcaa8c4e645cc6648ee28b6f Mon Sep 17 00:00:00 2001 From: Henrixounez <30901439+Henrixounez@users.noreply.github.com> Date: Thu, 23 Jan 2020 21:06:57 +0100 Subject: [PATCH] compiler: fix check restricted names in for..in statement --- vlib/compiler/for.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/compiler/for.v b/vlib/compiler/for.v index ff291547c6..f72779d1ad 100644 --- a/vlib/compiler/for.v +++ b/vlib/compiler/for.v @@ -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)