tunioninit.nim 716 B

123456789101112131415161718192021222324252627282930313233
  1. # issue #20653
  2. type
  3. EmptySeq* {.bycopy.} = object
  4. ChoiceWithEmptySeq_d* {.bycopy.} = object
  5. a*: bool
  6. INNER_C_UNION* {.bycopy, union.} = object
  7. a*: char
  8. b*: EmptySeq
  9. c*: byte
  10. d*: ChoiceWithEmptySeq_d
  11. ChoiceWithEmptySeq_selection* = enum
  12. ChoiceWithEmptySeq_NONE,
  13. ChoiceWithEmptySeq_a_PRESENT,
  14. ChoiceWithEmptySeq_b_PRESENT,
  15. ChoiceWithEmptySeq_c_PRESENT,
  16. ChoiceWithEmptySeq_d_PRESENT
  17. ChoiceWithEmptySeq* {.bycopy.} = object
  18. kind*: ChoiceWithEmptySeq_selection
  19. u*: INNER_C_UNION
  20. Og_Context* {.bycopy.} = object
  21. state*: int
  22. init_done*: bool
  23. ch*: ChoiceWithEmptySeq
  24. em*: EmptySeq
  25. var context* : Og_Context = Og_Context(init_done: false)