Fix a bug that allowed duplicate module names.
Change-Id: I9317e43ac435a26397557328036c11a8a2da7480
This commit is contained in:
parent
7d5b2f82ce
commit
b282d5c8d6
1 changed files with 1 additions and 1 deletions
|
@ -588,7 +588,7 @@ func (c *Context) processModuleDef(moduleDef *parser.Module,
|
|||
Err: fmt.Errorf("<-- previous definition here"),
|
||||
Pos: c.moduleInfo[first].pos,
|
||||
})
|
||||
if len(errs) >= maxErrors {
|
||||
if len(errs) > 0 {
|
||||
return errs
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue