t16639.nim 280 B

123456789101112131415161718192021
  1. discard """
  2. action: compile
  3. """
  4. type Foo[T] = object
  5. when true:
  6. x: float
  7. type Bar = object
  8. when true:
  9. x: float
  10. import std/macros
  11. macro test() =
  12. let a = getImpl(bindSym"Foo")[^1]
  13. let b = getImpl(bindSym"Bar")[^1]
  14. doAssert treeRepr(a) == treeRepr(b)
  15. test()