CONFLICTING_GENERIC_INTERFACES constant

CompileTimeErrorCode const CONFLICTING_GENERIC_INTERFACES

10.10 Superinterfaces: It is a compile-time error if a class C has two superinterfaces that are different instantiations of the same generic class. For example, a class may not have both List<int> and List<num> as superinterfaces.

Parameters: 0: the name of the class implementing the conflicting interface 1: the first conflicting type 1: the second conflicting type

Implementation

static const CompileTimeErrorCode CONFLICTING_GENERIC_INTERFACES =
    CompileTimeErrorCode(
        'CONFLICTING_GENERIC_INTERFACES',
        "The class '{0}' cannot implement both '{1}' and '{2}' because the "
            "type arguments are different.")