I'm implementing a variant object type, where one of the enum cases has no
fields associated with it, but get a syntax error:
type
AuthenticatorType = enum
None,
Basic,
Session,
Cookie
Authenticator = object
case type: AuthenticatorType:
of None:
# Error: identifier expected, but got 'keyword of'
of Basic: username, password: string
of Session: sessionID: string
of Cookie: name, value: string
Run
What can I put after `of None:` to satisfy the parser? Or is it impossible to
have a case with no associated value?
(I've checked [the
manual](https://nim-lang.org/docs/manual.html#types-object-variants) but it
says nothing about this possibility.)