This runs fine on the playground ([https://play.nim-lang.org/)](https://play.nim-lang.org/\)):
type TKind = enum
A, B, C
type T = object
s: string
case kind: TKind
of A:
a: int
of B:
b: int
of C:
c: int
var t = T(s: "hoi", kind: A, a: 13) echo t
