fix for template redefinition. test cases added.
This commit is contained in:
parent
d1d5fc8254
commit
6975ba401b
8 changed files with 99 additions and 15 deletions
9
tests/reject/tprocredef.nim
Normal file
9
tests/reject/tprocredef.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
file: "tprocredef.nim"
|
||||
line: 8
|
||||
errormsg: "redefinition of \'foo\'"
|
||||
"""
|
||||
|
||||
proc foo(a: int, b: string) = nil
|
||||
proc foo(a: int, b: string) = nil
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue