IMPLEMENTS_DISALLOWED_CLASS constant

CompileTimeErrorCode const IMPLEMENTS_DISALLOWED_CLASS

12.2 Null: It is a compile-time error for a class to attempt to extend or implement Null.

12.3 Numbers: It is a compile-time error for a class to attempt to extend or implement int.

12.3 Numbers: It is a compile-time error for a class to attempt to extend or implement double.

12.3 Numbers: It is a compile-time error for any type other than the types int and double to attempt to extend or implement num.

12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool.

12.5 Strings: It is a compile-time error for a class to attempt to extend or implement String.

Parameters: 0: the name of the type that cannot be implemented

See EXTENDS_DISALLOWED_CLASS.

Implementation

static const CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS =
    CompileTimeErrorCode('IMPLEMENTS_DISALLOWED_CLASS',
        "Classes and mixins can't implement '{0}'.",
        correction: "Try specifying a different interface, or "
            "remove the class from the list.")