261 bare return impl caret on head

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

Code

input.k

Actual compiler output

error[KORU021]: tor 'f' declares branches, so its implementation constructs one — a bare return (`->`) produces no branch tag
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_261_bare_return_impl_caret_on_head/input.k:11:0
    |
 11 | f -> a
    | ^
  hint: implement it with the branch constructor instead: `~f => <branch> <value>`, naming one of: done, fail

Frontend must reject with:

CONTAINS error[KORU021]
CONTAINS bare return
ERROR_AT 11

Flows

flow ~f click a branch to expand · @labels scroll to their anchor
f (a: 1)

Test Configuration

MUST_ERROR