INCONSISTENT_CASE_EXPRESSION_TYPES constant

CompileTimeErrorCode const INCONSISTENT_CASE_EXPRESSION_TYPES

13.9 Switch: It is a compile-time error if values of the expressions ek are not instances of the same class C, for all 1 <= k <= n.

Parameters: 0: the expression source code that is the unexpected type 1: the name of the expected type

Implementation

static const CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES =
    CompileTimeErrorCode('INCONSISTENT_CASE_EXPRESSION_TYPES',
        "Case expressions must have the same types, '{0}' isn't a '{1}'.")