t5792.nim 198 B

123456789101112131415161718
  1. discard """
  2. matrix: "--gc:refc; --gc:arc"
  3. """
  4. type
  5. T = enum
  6. a
  7. b
  8. c
  9. U = object
  10. case k: T
  11. of a:
  12. x: int
  13. of {b, c} - {a}:
  14. y: int
  15. doAssert U(k: b, y: 1).y == 1