Add testcase for invalid if statement (#15313)
This commit is contained in:
parent
1881fc5812
commit
60ad95f799
1 changed files with 12 additions and 0 deletions
12
tests/parser/tinvifstmt.nim
Normal file
12
tests/parser/tinvifstmt.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
errormsg: "invalid indentation"
|
||||
line: 9
|
||||
column: 3
|
||||
"""
|
||||
|
||||
if true:
|
||||
echo "a"
|
||||
elif:
|
||||
echo "b"
|
||||
else:
|
||||
echo "c"
|
||||
Loading…
Add table
Add a link
Reference in a new issue