INCONSISTENT_INHERITANCE constant

CompileTimeErrorCode const INCONSISTENT_INHERITANCE

If a class declaration does not have a member declaration with a particular name, but some super-interfaces do have a member with that name, it's a compile-time error if there is no signature among the super-interfaces that is a valid override of all the other super-interface signatures with the same name. That "most specific" signature becomes the signature of the class's interface.

Parameters: 0: the name of the instance member with inconsistent inheritance. 1: the list of all inherited signatures for this member.

Implementation

static const CompileTimeErrorCode INCONSISTENT_INHERITANCE =
    CompileTimeErrorCode('INCONSISTENT_INHERITANCE',
        "Superinterfaces don't have a valid override for '{0}': {1}.",
        correction:
            "Try adding an explicit override that is consistent with all "
            "of the inherited members.")