Merge pull request #1875 from zhiqiangxu:fix_scope_add

PiperOrigin-RevId: 315341669
This commit is contained in:
gVisor bot
2020-06-08 13:34:58 -07:00
+4
View File
@@ -72,6 +72,10 @@ func (s *scope) deepLookup(n string) *symbol {
}
func (s *scope) add(name string, kind SymKind, pos token.Pos) {
if s.syms[name] != nil {
return
}
s.syms[name] = &symbol{
kind: kind,
pos: pos,