CONFLICTING_TYPE_VARIABLE_AND_CLASS constant

CompileTimeErrorCode const CONFLICTING_TYPE_VARIABLE_AND_CLASS
  1. Classes: It is a compile time error if a generic class declares a type variable with the same name as the class or any of its members or constructors.

Parameters: 0: the name of the type variable

Implementation

static const CompileTimeErrorCode CONFLICTING_TYPE_VARIABLE_AND_CLASS =
    CompileTimeErrorCode(
        'CONFLICTING_TYPE_VARIABLE_AND_CLASS',
        "'{0}' can't be used to name both a type variable and the class in "
            "which the type variable is defined.",
        correction: "Try renaming either the type variable or the class.")