trecursive_table.nim 193 B

123456789101112131415161718
  1. # bug #1700
  2. import tables
  3. type
  4. E* = enum
  5. eX
  6. eY
  7. T* = object
  8. case kind: E
  9. of eX:
  10. xVal: Table[string, T]
  11. of eY:
  12. nil
  13. proc p*(x: Table[string, T]) =
  14. discard