From 3b621c0ce61ece1f855e380e6ba2f9fe07da8b8e Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Tue, 31 Mar 2020 15:41:14 +1100 Subject: [PATCH] checker: make var_scope mutable --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 8e822d78f3..06a7316763 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -809,7 +809,7 @@ pub fn (c mut Checker) ident(ident mut ast.Ident) table.Type { } start_scope := c.file.scope.innermost(ident.pos.pos) mut found := true - var_scope,var := start_scope.find_scope_and_var(ident.name) or { + mut var_scope,var := start_scope.find_scope_and_var(ident.name) or { found = false c.error('not found: $ident.name - POS: $ident.pos.pos', ident.pos) panic('')