diff options
Diffstat (limited to 'compiler/lookups.nim')
-rw-r--r-- | compiler/lookups.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 0f6ec151a..e928f707e 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -287,6 +287,7 @@ proc ensureNoMissingOrUnusedSymbols(c: PContext; scope: PScope) = proc wrongRedefinition*(c: PContext; info: TLineInfo, s: string; conflictsWith: TLineInfo) = + ## Emit a redefinition error if in non-interactive mode if c.config.cmd != cmdInteractive: localError(c.config, info, "redefinition of '$1'; previous declaration here: $2" % |