fixes #7528
This commit is contained in:
parent
2d68674338
commit
8b7c2bd067
2 changed files with 18 additions and 1 deletions
14
tests/metatype/tautotypetrait.nim
Normal file
14
tests/metatype/tautotypetrait.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
discard """
|
||||
output: "(Field0: "string", Field1: "string")"
|
||||
"""
|
||||
|
||||
# 7528
|
||||
import macros
|
||||
import typetraits
|
||||
|
||||
macro bar*(n: untyped): typed =
|
||||
result = newNimNode(nnkStmtList, n)
|
||||
result.add(newCall("write", newIdentNode("stdout"), n))
|
||||
|
||||
proc foo0[T](): auto = return (T.name, T.name)
|
||||
bar foo0[string]()
|
||||
Loading…
Add table
Add a link
Reference in a new issue