diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-17 19:54:49 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-17 19:54:56 +0200 |
commit | 539fc5d58b77d43c19d10a3949841c26dcd2cffc (patch) | |
tree | c4069fdcc1dbb389de176e52517ba120a775ab44 /compiler/semstmts.nim | |
parent | 3467c455c0a90a9f507e92b72cb7dd1a9aaf85e8 (diff) | |
download | Nim-539fc5d58b77d43c19d10a3949841c26dcd2cffc.tar.gz |
improve the error message for 'attempt to redefine X'; fixes #447
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 566b634af..87d144dc6 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1604,7 +1604,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind, localError(c.config, n.sons[pragmasPos].info, errPragmaOnlyInHeaderOfProcX % ("'" & proto.name.s & "' from " & c.config$proto.info)) if sfForward notin proto.flags and proto.magic == mNone: - wrongRedefinition(c, n.info, proto.name.s) + wrongRedefinition(c, n.info, proto.name.s, proto.info) excl(proto.flags, sfForward) closeScope(c) # close scope with wrong parameter symbols openScope(c) # open scope for old (correct) parameter symbols |