NON_CONST_MAP_AS_EXPRESSION_STATEMENT constant

CompileTimeErrorCode const NON_CONST_MAP_AS_EXPRESSION_STATEMENT

13.2 Expression Statements: It is a compile-time error if a non-constant map literal that has no explicit type arguments appears in a place where a statement is expected.

Implementation

static const CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT =
    CompileTimeErrorCode(
        'NON_CONST_MAP_AS_EXPRESSION_STATEMENT',
        "A non-constant map or set literal without type arguments can't be "
            "used as an expression statement.")