diff options
Diffstat (limited to 'compiler/lookups.nim')
-rw-r--r-- | compiler/lookups.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 744f77cf8..0a6a0b950 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -135,7 +135,7 @@ proc errorSym*(c: PContext, n: PNode): PSym = considerQuotedIdent(c, m) else: getIdent(c.cache, "err:" & renderTree(m)) - result = newSym(skError, ident, getCurrOwner(c), n.info, {}) + result = newSym(skError, ident, nextId(c.idgen), getCurrOwner(c), n.info, {}) result.typ = errorType(c) incl(result.flags, sfDiscardable) # pretend it's imported from some unknown module to prevent cascading errors: |