332 midline branch arm refused

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[PARSE001]: branch arm '| then' written mid-line — branch arms open on their own line
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_332_midline_branch_arm_refused/input.k:23:12
    |
 23 |         | then |> if (false) | then |> std/io:print.ln("WRONG")
    |            ^
  hint: a `| name` arm dispatches on the step it follows; put it on a new line indented under that step. A same-line next step chains with `|>`.

Frontend must reject with:

CONTAINS error[PARSE001]
CONTAINS branch arm '| then' written mid-line
ERROR_AT 23

Test Configuration

MUST_ERROR