1
0
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:
Enzo Baldisserri
2020-04-23 12:00:51 +02:00
committed by GitHub
parent fb97c2e01e
commit 7e400124e8
3 changed files with 284 additions and 20 deletions

View File

@ -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