summary refs log blame commit diff stats
path: root/tests/lexer/tind1.nim
blob: 2185c3074dfd063556e92a7634a89894173084eb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
           
                                 
          









                                                       
                              
         




                  
 



               
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"