`semProcAux` has a check for `checkMinSonsLen(n, bodyPos + 1)`

(cherry picked from commit be06446ffe)
This commit is contained in:
metagn
2023-04-11 10:37:53 +03:00
committed by narimiran
parent 6f05abf21c
commit 3f85abbd54
2 changed files with 22 additions and 2 deletions

22
tests/macros/t15691.nim Normal file
View File

@@ -0,0 +1,22 @@
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