mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
26 lines
319 B
Nim
26 lines
319 B
Nim
discard """
|
|
errormsg: "invalid indentation"
|
|
line: 24
|
|
"""
|
|
|
|
import macros
|
|
|
|
# finally optional indentation in 'if' expressions :-):
|
|
var x = if 4 != 5:
|
|
"yes"
|
|
else:
|
|
"no"
|
|
|
|
macro mymacro(n, b): untyped =
|
|
discard
|
|
|
|
mymacro:
|
|
echo "test"
|
|
else:
|
|
echo "else part"
|
|
|
|
if 4 == 3:
|
|
echo "bug"
|
|
else:
|
|
echo "no bug"
|