REDIRECT_TO_NON_CONST_CONSTRUCTOR constant

CompileTimeErrorCode const REDIRECT_TO_NON_CONST_CONSTRUCTOR

7.6.2 Factories: It is a compile-time error if k is prefixed with the const modifier but k' is not a constant constructor.

Implementation

static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR =
    CompileTimeErrorCode(
        'REDIRECT_TO_NON_CONST_CONSTRUCTOR',
        "Constant redirecting constructor can't redirect to a non-constant "
            "constructor.",
        correction: "Try redirecting to a different constructor.")