mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
23 lines
504 B
Nim
23 lines
504 B
Nim
discard """
|
|
action: compile
|
|
"""
|
|
|
|
import std/macros
|
|
|
|
macro simplifiedExpandMacros(body: typed): untyped =
|
|
result = body
|
|
|
|
simplifiedExpandMacros:
|
|
proc testProc() = discard
|
|
|
|
simplifiedExpandMacros:
|
|
template testTemplate(): untyped = discard
|
|
|
|
# Error: illformed AST: macro testMacro(): untyped =
|
|
simplifiedExpandMacros:
|
|
macro testMacro(): untyped = discard
|
|
|
|
# Error: illformed AST: converter testConverter(x: int): float =
|
|
simplifiedExpandMacros:
|
|
converter testConverter(x: int): float = discard
|