Closed 5nord closed 1 year ago
this is already supported:
{`type enumerated MyThirdEnumType {Blue(0),Yellow(1),Green(3),Other(2, 4..255)}; MyThirdEnumType`,
NewEnumTypeWithIds(
"MyThirdEnumType",
"Blue", []runtime.EnumRange{{First: 0, Last: 0}},
"Yellow", []runtime.EnumRange{{First: 1, Last: 1}},
"Green", []runtime.EnumRange{{First: 3, Last: 3}},
"Other", []runtime.EnumRange{{First: 2, Last: 2}, {First: 4, Last: 255}},
),
},
passes
Implemented in #637
Support enumerated labels which represent multiple values.
Example from the standard:
_Originally posted by @5nord in https://github.com/nokia/ntt/pull/637#discussion_r984249376_