tind1.nim 319 B

1234567891011121314151617181920212223242526
  1. discard """
  2. errormsg: "invalid indentation"
  3. line: 24
  4. """
  5. import macros
  6. # finally optional indentation in 'if' expressions :-):
  7. var x = if 4 != 5:
  8. "yes"
  9. else:
  10. "no"
  11. macro mymacro(n, b): untyped =
  12. discard
  13. mymacro:
  14. echo "test"
  15. else:
  16. echo "else part"
  17. if 4 == 3:
  18. echo "bug"
  19. else:
  20. echo "no bug"