From 60ad95f79954fa870a124b5afc4ad5239fbebab1 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Sat, 12 Sep 2020 14:28:19 +0200 Subject: [PATCH] Add testcase for invalid if statement (#15313) --- tests/parser/tinvifstmt.nim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/parser/tinvifstmt.nim 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"