GENERIC_FUNCTION_TYPE_CANNOT_BE_TYPE_ARGUMENT constant

CompileTimeErrorCode const GENERIC_FUNCTION_TYPE_CANNOT_BE_TYPE_ARGUMENT

It is a compile-time error if a generic function type is used as an actual type argument.

Implementation

GENERIC_FUNCTION_TYPE_CANNOT_BE_TYPE_ARGUMENT = CompileTimeErrorCode(
    'GENERIC_FUNCTION_TYPE_CANNOT_BE_TYPE_ARGUMENT',
    "A generic function type can't be a type argument.",
    correction: "Try removing type parameters from the generic function "
        "type, or using 'dynamic' as the type argument here.")