checker: make var_scope mutable

pull/4161/head
joe-conigliaro 2020-03-31 15:41:14 +11:00
parent 602bc06bee
commit 3b621c0ce6
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
1 changed files with 1 additions and 1 deletions

View File

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