#.require. clr @platform clr # comma seperated syntax enum Color Red = 1, Green = 2, Blue = 4 class Test def main is shared c = Color(Red, Green) print c print c to int # non portable - assumes Enums castable to int .takeColor(Color(Red, Green)) # TODO: Should have a qualified example. System.SomeEnum(MemberA, MemberB) and System.Something.SomeEnum(MemberA, MemberB) # testing enum membership with bitwise-and (also int centric) assert c & Color.Red == Color.Red assert c & Color.Green == Color.Green assert c & Color.Blue <> Color.Blue def takeColor(c as Color) is shared pass