summary refs log tree commit diff stats
path: root/tests/reject/tprocredef.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2012-03-15 14:15:37 +0200
committerZahary Karadjov <zahary@gmail.com>2012-03-15 14:15:37 +0200
commit6975ba401b365a286336dd3dd66112395206c53e (patch)
tree9a123537a73a8d6c0d992ddb754beead0c47f98a /tests/reject/tprocredef.nim
parentd1d5fc8254eb376de64106314686f2e8e7db459c (diff)
downloadNim-6975ba401b365a286336dd3dd66112395206c53e.tar.gz
fix for template redefinition. test cases added.
Diffstat (limited to 'tests/reject/tprocredef.nim')
-rw-r--r--tests/reject/tprocredef.nim9
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
+