BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME constant

CompileTimeErrorCode const BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME

16.33 Identifier Reference: It is a compile-time error if a built-in identifier is used as the declared name of a prefix, class, type parameter or type alias.

Parameters: 0: the built-in identifier that is being used

Implementation

static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME =
    CompileTimeErrorCode(
        'BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME',
        "The built-in identifier '{0}' can't be used as a type parameter "
            "name.",
        correction: "Try choosing a different name for the type parameter.")