t21260.nim 183 B

1234567891011121314
  1. discard """
  2. errormsg: "illegal recursion in type 'Foo'"
  3. line: 8
  4. """
  5. type
  6. Kind = enum kA, kB
  7. Foo = object
  8. case k: Kind:
  9. of kA:
  10. foo: Foo
  11. of kB:
  12. discard