parent
c47d5196be
commit
e98efdcc5e
2 changed files with 25 additions and 3 deletions
21
tests/generics/t16639.nim
Normal file
21
tests/generics/t16639.nim
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue