NON_CONSTANT_ANNOTATION_CONSTRUCTOR constant

CompileTimeErrorCode const NON_CONSTANT_ANNOTATION_CONSTRUCTOR

15 Metadata: Metadata consists of a series of annotations, each of which begin with the character @, followed by a constant expression that must be either a reference to a compile-time constant variable, or a call to a constant constructor.

"From deferred library" case is covered by CompileTimeErrorCode.INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY.

Implementation

static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR =
    CompileTimeErrorCode('NON_CONSTANT_ANNOTATION_CONSTRUCTOR',
        "Annotation creation can only call a const constructor.")