015 scan reject terminal

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

Code

input.k

Actual compiler output

error[KORU162]: std/regex:scan pattern `[0-9]+` must be an effect branch `!` (it fires once per match), not a terminal `|`
  --> tests/regression/600_STDLIB/640_REGEX/640_015_scan_reject_terminal/input.k:7:0

Must contain:

must be an effect branch `!`

Flows

flow ~scan click a branch to expand · @labels scroll to their anchor
scan (input: "42")

Test Configuration

MUST_ERROR