CONFLICTING_TYPE_VARIABLE_AND_MEMBER constant

CompileTimeErrorCode const CONFLICTING_TYPE_VARIABLE_AND_MEMBER
  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_MEMBER =
    CompileTimeErrorCode(
        'CONFLICTING_TYPE_VARIABLE_AND_MEMBER',
        "'{0}' can't be used to name both a type variable and a member in "
            "this class.",
        correction: "Try renaming either the type variable or the member.")