summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-04-25 19:36:05 +0200
committerAraq <rumpf_a@web.de>2017-04-25 19:36:05 +0200
commit05c20bc4ffc8d3c4d0514d2834830d057ecd194a (patch)
treed76f15bd9f71778ff46e9454ab4e3cf90c293d14 /tests/parser
parentc6a8bd264e77da69fc95de17a7febe5a32955a40 (diff)
downloadNim-05c20bc4ffc8d3c4d0514d2834830d057ecd194a.tar.gz
fixes a parser bug
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/twrongcmdsyntax.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/parser/twrongcmdsyntax.nim b/tests/parser/twrongcmdsyntax.nim
new file mode 100644
index 000000000..affe72c34
--- /dev/null
+++ b/tests/parser/twrongcmdsyntax.nim
@@ -0,0 +1,6 @@
+discard """
+  errormsg: '''identifier expected, but found 'echo 4'''
+  line: 6
+"""
+
+echo 4 +2