CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS constant

CompileTimeErrorCode const CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS

13.9 Switch: It is a compile-time error if the class C implements the operator ==.

Parameters: 0: the this of the switch case expression

Implementation

static const CompileTimeErrorCode CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS =
    CompileTimeErrorCode(
        'CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS',
        "The switch case expression type '{0}' can't override the == "
            "operator.")