Files
Nim/tests/generics/mpragma2.nim
metagn d72b848d17 process non-language pragma nodes in generics (#24254)
fixes #18649, refs #24183

Same as in #24183 for templates, we now process pragma nodes in generics
so that macro symbols are captured and the pragma arguments are checked,
but ignoring language pragma keywords.

A difference is that we cannot process call nodes as is, we have to
process their children individually so that the early untyped
macro/template instantiation in generics does not kick in.
2024-10-07 23:18:45 +02:00

7 lines
91 B
Nim

import mpragma1
proc p*[T]() =
proc inner() {.aMacro.} =
discard
inner()
discard