checker: make var_scope mutable
parent
602bc06bee
commit
3b621c0ce6
|
@ -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('')
|
||||
|
|
Loading…
Reference in New Issue