summary refs log tree commit diff stats
path: root/tests/reject/tmissingnl.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reject/tmissingnl.nim')
-rw-r--r--tests/reject/tmissingnl.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/reject/tmissingnl.nim b/tests/reject/tmissingnl.nim
new file mode 100644
index 000000000..c2f97a807
--- /dev/null
+++ b/tests/reject/tmissingnl.nim
@@ -0,0 +1,10 @@
+discard """
+  file: "tmissingnl.nim"
+  line: 7
+  errormsg: "newline expected, but found 'keyword var'"
+"""
+
+import strutils var s: seq[int] = @[0, 1, 2, 3, 4, 5, 6]
+
+#s[1..3] = @[]
+