CONST_EVAL_TYPE_BOOL_NUM_STRING constant

CompileTimeErrorCode const CONST_EVAL_TYPE_BOOL_NUM_STRING

16.12.2 Const: An expression of one of the forms e1 == e2 or e1 != e2 where e1 and e2 are constant expressions that evaluate to a numeric, string or boolean value or to null.

Implementation

static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING =
    CompileTimeErrorCode(
        'CONST_EVAL_TYPE_BOOL_NUM_STRING',
        "In constant expressions, operands of this operator must be of type "
            "'bool', 'num', 'String' or 'null'.")