diff options
author | Clyybber <darkmine956@gmail.com> | 2020-09-12 14:28:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 14:28:19 +0200 |
commit | 60ad95f79954fa870a124b5afc4ad5239fbebab1 (patch) | |
tree | e1b64d4bb272d384c4dd798d37fcbb768e95d4c3 /tests | |
parent | 1881fc5812aeada551e32c0d81a3aa4f6fceb0bb (diff) | |
download | Nim-60ad95f79954fa870a124b5afc4ad5239fbebab1.tar.gz |
Add testcase for invalid if statement (#15313)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parser/tinvifstmt.nim | 12 |
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" |