This commit is contained in:
parent
950dadbc71
commit
8db5b32ff7
5 changed files with 16 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ proc rawImportSymbol(c: PContext, s: PSym) =
|
|||
# check if we have already a symbol of the same name:
|
||||
var check = strTableGet(c.importTable.symbols, s.name)
|
||||
if check != nil and check.id != s.id:
|
||||
if s.kind notin OverloadableSyms:
|
||||
if s.kind notin OverloadableSyms or check.kind notin OverloadableSyms:
|
||||
# s and check need to be qualified:
|
||||
incl(c.ambiguousSymbols, s.id)
|
||||
incl(c.ambiguousSymbols, check.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue