CONST_FORMAL_PARAMETER constant

CompileTimeErrorCode const CONST_FORMAL_PARAMETER

6.2 Formal Parameters: It is a compile-time error if a formal parameter is declared as a constant variable.

Implementation

static const CompileTimeErrorCode CONST_FORMAL_PARAMETER =
    CompileTimeErrorCode(
        'CONST_FORMAL_PARAMETER', "Parameters can't be const.",
        correction: "Try removing the 'const' keyword.")