Is enum broken ?

I get it, i declare a enum type first, and a var in the class. Thx!