002 unclosed branch brace

✓ 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]: unmatched '{' in branch payload shape
  --> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_002_unclosed_branch_brace/input.kz:5:8
    |
  5 | | success {
    |        ^

Test Configuration

Expected Error:

error: expected '}', found '|'