small REPL improvements

This commit is contained in:
Araq 2013-06-28 16:40:01 +02:00
commit 976d5b18ed
3 changed files with 7 additions and 6 deletions

View file

@ -91,7 +91,8 @@ 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:
c.importTable.addSym(result)
if gCmd != cmdInteractive:
c.importTable.addSym(result)
type
TOverloadIterMode* = enum