* fix #20996

* hopefully fix
This commit is contained in:
metagn 2022-12-04 22:37:23 +03:00 • committed by GitHub
commit 5536f74992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 8 deletions

15
tests/generics/t20996.nim Normal file
View 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)