Files
Nim/tests/generics/t20996.nim
metagn 5536f74992 fix #20996 (#21016)
* fix #20996

* hopefully fix
2022-12-04 20:37:23 +01:00

16 lines
253 B
Nim

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)