This commit is contained in:
metagn 2022-12-06 00:52:49 +03:00 • committed by GitHub
commit e98efdcc5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 3 deletions

21
tests/generics/t16639.nim Normal file
View file

@ -0,0 +1,21 @@
discard """
action: compile
"""
type Foo[T] = object
when true:
x: float
type Bar = object
when true:
x: float
import std/macros
import std/assertions
macro test() =
let a = getImpl(bindSym"Foo")[^1]
let b = getImpl(bindSym"Bar")[^1]
doAssert treeRepr(a) == treeRepr(b)
test()