diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-03-15 14:15:37 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-03-15 14:15:37 +0200 |
commit | 6975ba401b365a286336dd3dd66112395206c53e (patch) | |
tree | 9a123537a73a8d6c0d992ddb754beead0c47f98a /tests/reject/tprocredef.nim | |
parent | d1d5fc8254eb376de64106314686f2e8e7db459c (diff) | |
download | Nim-6975ba401b365a286336dd3dd66112395206c53e.tar.gz |
fix for template redefinition. test cases added.
Diffstat (limited to 'tests/reject/tprocredef.nim')
-rw-r--r-- | tests/reject/tprocredef.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/reject/tprocredef.nim b/tests/reject/tprocredef.nim new file mode 100644 index 000000000..86ed92b62 --- /dev/null +++ b/tests/reject/tprocredef.nim @@ -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 + |