parent
55373e65b4
commit
5536f74992
3 changed files with 27 additions and 8 deletions
15
tests/generics/t20996.nim
Normal file
15
tests/generics/t20996.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
import std/macros
|
||||
|
||||
macro matchMe(x: typed): untyped =
|
||||
discard x.getTypeImpl
|
||||
|
||||
type
|
||||
ElementRT = object
|
||||
Element[Z] = ElementRT # this version is needed, even though we don't use it
|
||||
|
||||
let ar = ElementRT()
|
||||
matchMe(ar)
|
||||
Loading…
Add table
Add a link
Reference in a new issue