ACCESS_PRIVATE_ENUM_FIELD constant

CompileTimeErrorCode const ACCESS_PRIVATE_ENUM_FIELD

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 ACCESS_PRIVATE_ENUM_FIELD =
    CompileTimeErrorCode(
        'ACCESS_PRIVATE_ENUM_FIELD',
        "The private fields of an enum can't be accessed, even within the "
            "same library.")