TYPE_ARGUMENT_NOT_MATCHING_BOUNDS constant

CompileTimeErrorCode const TYPE_ARGUMENT_NOT_MATCHING_BOUNDS

Parameters: 0: the name of the type used in the instance creation that should be limited by the bound as specified in the class declaration 1: the name of the bounding type

Implementation

static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS =
    CompileTimeErrorCode(
        'TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', "'{0}' doesn't extend '{1}'.",
        correction: "Try using a type that is or is a subclass of '{1}'.",
        hasPublishedDocs: true)