enums: cannot access static and non-compile-time constant