INVALID_TYPE_ARGUMENT_IN_CONST_MAP constant

CompileTimeErrorCode const INVALID_TYPE_ARGUMENT_IN_CONST_MAP

12.7 Maps: It is a compile time error if the type arguments of a constant map literal include a type parameter.

Parameters: 0: the name of the type parameter

Implementation

static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP =
    CompileTimeErrorCode(
        'INVALID_TYPE_ARGUMENT_IN_CONST_MAP',
        "Constant map literals can't include a type parameter as a type "
            "argument, such as '{0}'.",
        correction:
            "Try replacing the type parameter with a different type.")