INCONSISTENT_INHERITANCE_GETTER_AND_METHOD constant

CompileTimeErrorCode const INCONSISTENT_INHERITANCE_GETTER_AND_METHOD

11.1.1 Inheritance and Overriding. Let I be the implicit interface of a class C declared in library L. I inherits all members of inherited(I, L) and I overrides m' if m' ∈ overrides(I, L). It is a compile-time error if m is a method and m' is a getter, or if m is a getter and m' is a method.

Parameters: 0: the name of the the instance member with inconsistent inheritance. 1: the name of the superinterface that declares the name as a getter. 2: the name of the superinterface that declares the name as a method.

Implementation

static const CompileTimeErrorCode INCONSISTENT_INHERITANCE_GETTER_AND_METHOD =
    CompileTimeErrorCode(
        'INCONSISTENT_INHERITANCE_GETTER_AND_METHOD',
        "'{0}' is inherited as a getter (from '{1}') and also a "
            "method (from '{2}').",
        correction:
            "Try adjusting the supertypes of this class to remove the "
            "inconsistency.")