# This is my example: type OnOff = bool type Offset = int type ActionKind = enum A, B Action = object case kind: ActionKind of A: onoff: OnOff of B: offset: Offset # I would have expected: type OnOff = bool type Offset = int type Action = OnOff | Offset