mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 13:33:22 +00:00
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.
11 lines
88 B
Nim
11 lines
88 B
Nim
discard """
|
|
nimout: '''
|
|
in macro
|
|
'''
|
|
"""
|
|
|
|
# issue #18649
|
|
|
|
import mpragma2
|
|
p[string]()
|