Ticket #44 (new defect)

Opened 10 years ago

Cobra always allows combining enum values even when not legal

Reported by: Chuck Owned by:
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:


Cobra allows enums to be combined (xor'ed) via EnumName(MemberA, MemberB, MemberC). .NET enum types can have an attribute indicating if the enums can be combined. Cobra is not checking for that attribute and reporting an error (or warning?) if it doesn't exist.

(I forget the name of the attribute off the top of my head.)

Note: See TracTickets for help on using tickets.