INSTANTIATE_ENUM constant

CompileTimeErrorCode const INSTANTIATE_ENUM

Enum proposal: It is also a compile-time error to explicitly instantiate an enum via 'new' or 'const' or to access its private fields.

Implementation

static const CompileTimeErrorCode INSTANTIATE_ENUM = CompileTimeErrorCode(
    'INSTANTIATE_ENUM', "Enums can't be instantiated.",
    correction: "Try using one of the defined constants.")