Files
Nim/tests/pragmas/tparamcustompragma.nim
2025-02-22 21:22:30 +01:00

17 lines
232 B
Nim

discard """
nimout: '''
proc foo(a {.attr.}: int) =
discard
'''
"""
# fixes #24702
import macros
template attr*() {.pragma.}
proc foo(a {.attr.}: int) = discard
macro showImpl(a: typed) =
echo repr getImpl(a)
showImpl(foo)