Support anonymous enumertation types.
5nord opened this issue · comments
Not all enumerated types have a name:
$ ntt -i
ntt dev (none, unknown)
>> type record of enumerated { E } RoE
Error: unknown syntax node type: *ast.SubTypeDecl (&{TypeTok:{Terminal:{pos:1 Kind:type Lit:type} LeadingTriv:[] TrailingTriv:[]} Field:0xc0001c2000 With:<nil>})
Names are usually stored in the environment.
Originally posted by @5nord in #637 (comment)