081 unbalanced bracket in payload

✓ 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 ']' in payload shape — closing bracket has no matching '['
  --> tests/regression/100_PARSER/100_081_unbalanced_bracket_in_payload/input.kz:18:1
    |
 18 | | got { a: i32], b: u8 }
    | ^

Error Verification

Actual Compiler Output

error[PARSE004]: unbalanced ']' in payload shape — closing bracket has no matching '['
  --> tests/regression/100_PARSER/100_081_unbalanced_bracket_in_payload/input.kz:18:1
    |
 18 | | got { a: i32], b: u8 }
    | ^

Flows

flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "hi")

Test Configuration

MUST_FAIL