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:21:1
    |
 21 | ~sum(xs: ]1, 2[): n |> std/io:print.ln("got")
    | ^

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:21:1
    |
 21 | ~sum(xs: ]1, 2[): n |> std/io:print.ln("got")
    | ^

Test Configuration

MUST_FAIL