ON_REPEATED constant

CompileTimeErrorCode const ON_REPEATED

10.10 Superinterfaces: It is a compile-time error if two elements in the type list of the implements clause of a class C specifies the same type T.

Parameters: 0: the name of the interface that is implemented more than once

Implementation

static const CompileTimeErrorCode ON_REPEATED = CompileTimeErrorCode(
    'ON_REPEATED',
    "'{0}' can only be used in super-class constraints only once.",
    correction: "Try removing all but one occurrence of the class name.")