t15691.nim 504 B

1234567891011121314151617181920212223
  1. discard """
  2. action: compile
  3. """
  4. import std/macros
  5. macro simplifiedExpandMacros(body: typed): untyped =
  6. result = body
  7. simplifiedExpandMacros:
  8. proc testProc() = discard
  9. simplifiedExpandMacros:
  10. template testTemplate(): untyped = discard
  11. # Error: illformed AST: macro testMacro(): untyped =
  12. simplifiedExpandMacros:
  13. macro testMacro(): untyped = discard
  14. # Error: illformed AST: converter testConverter(x: int): float =
  15. simplifiedExpandMacros:
  16. converter testConverter(x: int): float = discard