summary refs log tree commit diff stats
path: root/tests/template
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-02-14 02:02:01 +0100
committerAraq <rumpf_a@web.de>2014-02-14 02:02:01 +0100
commit896c96134f47945c497a1a9f38d3d28ca43f119a (patch)
treed0f24c826854d187b73a3269f2feaa5241f37d80 /tests/template
parenta5efe849212162f1b52e4e5257c5cce14938ecbb (diff)
downloadNim-896c96134f47945c497a1a9f38d3d28ca43f119a.tar.gz
fixes #892
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/ttempl5.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/template/ttempl5.nim b/tests/template/ttempl5.nim
index 85692e97b..1f2378780 100644
--- a/tests/template/ttempl5.nim
+++ b/tests/template/ttempl5.nim
@@ -3,3 +3,16 @@ import mtempl5
 
 echo templ()
 
+#bug #892
+
+proc parse_to_close(value: string, index: int, open='(', close=')'): int =
+    discard
+
+# Call parse_to_close
+template get_next_ident: stmt =
+    discard "{something}".parse_to_close(0, open = '{', close = '}')
+
+get_next_ident()
+
+
+#identifier expected, but found '(open|open|open)'