CONFLICTING_FIELD_AND_METHOD constant

CompileTimeErrorCode const CONFLICTING_FIELD_AND_METHOD

10.11 Class Member Conflicts: Let C be a class. It is a compile-time error if C declares a getter or a setter with basename n, and has a method named n.

Parameters: 0: the name of the class defining the conflicting field 1: the name of the conflicting field 2: the name of the class defining the method with which the field conflicts

Implementation

static const CompileTimeErrorCode CONFLICTING_FIELD_AND_METHOD =
    CompileTimeErrorCode(
        'CONFLICTING_FIELD_AND_METHOD',
        "Class '{0}' can't define field '{1}' and have method '{2}.{1}' "
            "with the same name.",
        correction: "Try converting the getter to a method, or "
            "renaming the field to a name that doesn't conflict.")