t20996.nim 253 B

12345678910111213141516
  1. discard """
  2. action: compile
  3. """
  4. import std/macros
  5. macro matchMe(x: typed): untyped =
  6. discard x.getTypeImpl
  7. type
  8. ElementRT = object
  9. Element[Z] = ElementRT # this version is needed, even though we don't use it
  10. let ar = ElementRT()
  11. matchMe(ar)