Files
Nim/tests/macros/t15691.nim
metagn be06446ffe fix #15691 (#21623)
`semProcAux` has a check for `checkMinSonsLen(n, bodyPos + 1)`
2023-04-11 09:37:53 +02:00

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