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