Nasty bug in binary enumerations

Feedback Case Number: 76076

It appears that the maximum number of values within a binary enumeration is limited to 64, presumably because a UInt64 backs them. If you enter more than 64 values the integer value of the later values is always 9223372036854775807 which could lead to nasty hard to find bugs where different enumerations equate to each other.

Here’s a screenshot:

The IDE should prevent you from entering more than 64 values within an enumeration if the enumeration type is binary.

4 Likes