blob: f3fd952cc0dab51146880a15873a5d2209f82545 (
plain) (
tree)
|
|
discard """
line: 24
errormsg: "expression expected, but found 'keyword else'"
"""
import macros
# finally optional indentation in 'if' expressions :-):
var x = if 4 != 5:
"yes"
else:
"no"
macro mymacro(n: expr): stmt {.immediate.} = nil
mymacro:
echo "test"
else:
echo "else part"
if 4 == 3:
echo "bug"
else:
echo "no bug"
|