1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: make var_scope mutable

This commit is contained in:
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

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