082 unbalanced bracket in args

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Expected compiler error

error[PARSE004]: unbalanced ')' or ']' in arguments — closing delimiter has no matching opener
  --> tests/regression/100_PARSER/100_082_unbalanced_bracket_in_args/input.kz:22:1
    |
 22 | ~sum(xs: ]1, 2[)
    | ^

Error Verification

Actual Compiler Output

error[PARSE004]: unbalanced ')' or ']' in arguments — closing delimiter has no matching opener
  --> tests/regression/100_PARSER/100_082_unbalanced_bracket_in_args/input.kz:22:1
    |
 22 | ~sum(xs: ]1, 2[)
    | ^

Test Configuration

MUST_FAIL