summary refs log tree commit diff stats
path: root/compiler/lookups.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-02-22 16:27:52 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-22 16:27:52 +0100
commit46efaf294bfc230d0259d89fd0fbd7f1418b7ac4 (patch)
tree0b2d4c3970fe65b0ae41bebf33f555b2ccc537da /compiler/lookups.nim
parent311253ef2ffd63716ee69f4fd156462df26ae186 (diff)
downloadNim-46efaf294bfc230d0259d89fd0fbd7f1418b7ac4.tar.gz
big compiler refactoring; avoid globals for multi method dispatcher generation
Diffstat (limited to 'compiler/lookups.nim')
-rw-r--r--compiler/lookups.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim
index 19a4da07b..089e69ff9 100644
--- a/compiler/lookups.nim
+++ b/compiler/lookups.nim
@@ -115,7 +115,7 @@ proc errorSym*(c: PContext, n: PNode): PSym =
       considerQuotedIdent(m)
     else:
       getIdent("err:" & renderTree(m))
-  result = newSym(skError, ident, getCurrOwner(), n.info)
+  result = newSym(skError, ident, getCurrOwner(c), n.info)
   result.typ = errorType(c)
   incl(result.flags, sfDiscardable)
   # pretend it's imported from some unknown module to prevent cascading errors: