summary refs log tree commit diff stats
path: root/tests/reject/ttempl2.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-02-20 20:12:22 +0100
committerAraq <rumpf_a@web.de>2011-02-20 20:12:22 +0100
commit2cdfe35e737291e65060e2f954d718316a969048 (patch)
treea39553bd397311c4601dde11be37c50ad99d81ab /tests/reject/ttempl2.nim
parentcbee9c4e1a1252e6c809d25a0ef371ddee3fc802 (diff)
downloadNim-2cdfe35e737291e65060e2f954d718316a969048.tar.gz
tests themselves contain the expected result
Diffstat (limited to 'tests/reject/ttempl2.nim')
-rwxr-xr-xtests/reject/ttempl2.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/reject/ttempl2.nim b/tests/reject/ttempl2.nim
index fba6bd0cb..fba988f95 100755
--- a/tests/reject/ttempl2.nim
+++ b/tests/reject/ttempl2.nim
@@ -1,3 +1,8 @@
+discard """
+  file: "ttempl2.nim"
+  line: 18
+  errormsg: "undeclared identifier: \'b\'"
+"""
 template declareInScope(x: expr, t: typeDesc): stmt = 
   var x: t
   
@@ -12,3 +17,5 @@ a = 42  # works, `a` is known here
 declareInNewScope(b, int)
 b = 42  #ERROR_MSG undeclared identifier: 'b'
 
+
+