GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND constant

CompileTimeErrorCode const GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND

It is a compile-time error if a generic function type is used as a bound for a formal type parameter of a class or a function.

Implementation

static const CompileTimeErrorCode GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND =
    CompileTimeErrorCode('GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND',
        "Generic function types can't be used as type parameter bounds",
        correction: "Try making the free variable in the function type part"
            " of the larger declaration signature")