OPTIONAL_PARAMETER_IN_OPERATOR constant

CompileTimeErrorCode const OPTIONAL_PARAMETER_IN_OPERATOR

7.1.1 Operators: It is a compile-time error to declare an optional parameter in an operator.

Implementation

static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR =
    CompileTimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR',
        "Optional parameters aren't allowed when defining an operator.",
        correction: "Try removing the optional parameters.")