Improve nimsuggest (#21825)

Small improvement for nimsuggest
This commit is contained in:
Juan Carlos
2023-05-11 05:49:19 -03:00
committed by GitHub
parent 71dc929ad7
commit fa5e7dc44a

View File

@@ -732,7 +732,7 @@ func deduplicateSymInfoPair[SymInfoPair](xs: seq[SymInfoPair]): seq[SymInfoPair]
# sym may not match. This can happen when xs contains the same definition but
# with different signature because suggestSym might be called multiple times
# for the same symbol (e. g. including/excluding the pragma)
result = @[]
result = newSeqOfCap[SymInfoPair](xs.len)
for itm in xs.reversed:
var found = false
for res in result: