DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER constant

CompileTimeErrorCode const DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER

6.2.1 Required Formals: By means of a function signature that names the parameter and describes its type as a function type. It is a compile-time error if any default values are specified in the signature of such a function type.

Implementation

static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER =
    CompileTimeErrorCode('DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER',
        "Default values aren't allowed in function typed parameters.",
        correction: "Try removing the default value.")