095 reject bare literal arg

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

Code

input.k

Actual compiler output

error[PARSE006]: bare argument '5' does not name a parameter of 'echo' — an explicit label is required
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_095_reject_bare_literal_arg/input.k:21:0
    |
 21 | echo(5): r |> std/io:print.ln("{{ r:d }}")
    | ^
  hint: write it with an explicit label: 'v: 5'

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Expected patterns

Each line is a regex that must match the compiler error output.

error\[
explicit label

Flows

flow ~echo click a branch to expand · @labels scroll to their anchor
echo (5)

Test Configuration

MUST_ERROR