mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: allow blank ident in nested loops
This commit is contained in:
@ -107,6 +107,9 @@ pub fn (s mut Scope) update_var_type(name string, typ table.Type) {
|
||||
}
|
||||
|
||||
pub fn (s mut Scope) register(name string, obj ScopeObject) {
|
||||
if name == '_' {
|
||||
return
|
||||
}
|
||||
if x := s.find(name) {
|
||||
// println('existing obect: $name')
|
||||
return
|
||||
|
Reference in New Issue
Block a user