CONST_WITH_NON_CONSTANT_ARGUMENT constant

CompileTimeErrorCode const CONST_WITH_NON_CONSTANT_ARGUMENT

No parameters.

Implementation

static const CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT =
    CompileTimeErrorCode('CONST_WITH_NON_CONSTANT_ARGUMENT',
        "Arguments of a constant creation must be constant expressions.",
        correction: "Try making the argument a valid constant, or "
            "use 'new' to call the constructor.",
        hasPublishedDocs: true)