CONST_WITH_TYPE_PARAMETERS constant

CompileTimeErrorCode const CONST_WITH_TYPE_PARAMETERS

16.12.2 Const: If T is a parameterized type, it is a compile-time error if T includes a type variable among its type arguments.

Implementation

static const CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS =
    CompileTimeErrorCode('CONST_WITH_TYPE_PARAMETERS',
        "A constant creation can't use a type parameter as a type argument.",
        correction:
            "Try replacing the type parameter with a different type.")