summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-09-12 14:28:19 +0200
committerGitHub <noreply@github.com>2020-09-12 14:28:19 +0200
commit60ad95f79954fa870a124b5afc4ad5239fbebab1 (patch)
treee1b64d4bb272d384c4dd798d37fcbb768e95d4c3 /tests
parent1881fc5812aeada551e32c0d81a3aa4f6fceb0bb (diff)
downloadNim-60ad95f79954fa870a124b5afc4ad5239fbebab1.tar.gz
Add testcase for invalid if statement (#15313)
Diffstat (limited to 'tests')
-rw-r--r--tests/parser/tinvifstmt.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/parser/tinvifstmt.nim b/tests/parser/tinvifstmt.nim
new file mode 100644
index 000000000..0455bce60
--- /dev/null
+++ b/tests/parser/tinvifstmt.nim
@@ -0,0 +1,12 @@
+discard """
+  errormsg: "invalid indentation"
+  line: 9
+  column: 3
+"""
+
+if true:
+    echo "a"
+  elif:
+    echo "b"
+ else:
+   echo "c"