Fix a bug that allowed duplicate module names.

Change-Id: I9317e43ac435a26397557328036c11a8a2da7480
This commit is contained in:
Jamie Gennis 2014-09-24 20:07:08 -07:00 committed by Colin Cross
parent 7d5b2f82ce
commit b282d5c8d6

View file

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