diff options
author | Araq <rumpf_a@web.de> | 2014-03-05 08:47:27 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-03-05 08:47:27 +0100 |
commit | 3dfb4891c77f03b038f6f65c750460c4fc882c7f (patch) | |
tree | c94e37f64804ed767123c8aef0c8eb53fba31245 /compiler | |
parent | 4f946cb44e4fe60451b8ce4d15868ef0bce6949a (diff) | |
download | Nim-3dfb4891c77f03b038f6f65c750460c4fc882c7f.tar.gz |
bugfix: unreported 'compiles' bug
Diffstat (limited to 'compiler')
-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 93a7b7c72..fcb5b6731 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -92,7 +92,7 @@ proc errorSym*(c: PContext, n: PNode): PSym = result.typ = errorType(c) incl(result.flags, sfDiscardable) # pretend it's imported from some unknown module to prevent cascading errors: - if gCmd != cmdInteractive: + if gCmd != cmdInteractive and c.inCompilesContext == 0: c.importTable.addSym(result) type |