mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Add testcase for invalid if statement (#15313)
This commit is contained in:
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"
|
||||
Reference in New Issue
Block a user