enum Color Red = 1 Green = 2 Blue = 4 class Test def main is shared c = Color(Red, Green) # in java BE c is actually an EnumSet print c .takeColor(Color(Red, Green)) # TODO: Should have a qualified example. System.SomeEnum(MemberA, MemberB) and System.Something.SomeEnum(MemberA, MemberB) # testing enum membership with 'in' operator assert Color.Red in c assert Color.Green in c assert Color.Blue not in c assert not Color.Blue in c def takeColor(c as Color) is shared pass