mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
17 lines
232 B
Nim
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)
|