diff options
author | Clyybber <darkmine956@gmail.com> | 2020-07-29 16:17:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 16:17:20 +0200 |
commit | 2629d619a114f9c27b753a32da717a25906c99e6 (patch) | |
tree | 4a0e716d76da6c18877806dca852740081cb6158 /compiler/lookups.nim | |
parent | 196e747df150ace81e7f4c01253128d4a89f03c7 (diff) | |
download | Nim-2629d619a114f9c27b753a32da717a25906c99e6.tar.gz |
Fix forward declaration issues in template/macro context (#15091)
* Fix forward declaration issues in template/macro context * Correct forward declaration resolving for overloads * Remove old dead code * WIP consistent gensym ids * Minimize diff * Remove obsoleted hack * Add templInstCounter to give unique IDs to template instantiations * Remove obsoleted code * Eh, init in myOpen, not myProcess... * Remove optNimV019 * Add testcase for #13484
Diffstat (limited to 'compiler/lookups.nim')
-rw-r--r-- | compiler/lookups.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim index fe0e6fe7c..a3a2bf49c 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -316,8 +316,7 @@ proc qualifiedLookUp*(c: PContext, n: PNode, flags: set[TLookupFlag]): PSym = fixSpelling(n, ident, searchInScopes) errorUndeclaredIdentifier(c, n.info, ident.s) result = errorSym(c, n) - elif checkAmbiguity in flags and result != nil and - contains(c.ambiguousSymbols, result.id): + elif checkAmbiguity in flags and result != nil and result.id in c.ambiguousSymbols: errorUseQualifier(c, n.info, result) of nkSym: result = n.sym |