017 match destructure annotation refused

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

Code

input.k

Actual compiler output

error[KORU162]: regex match: destructure field 'row' carries annotation '[row]' — a match delivers named groups only; honored or refused, never silently ignored
  --> tests/regression/600_STDLIB/640_REGEX/640_017_match_destructure_annotation_refused/input.k:9:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

flow ~match click a branch to expand · @labels scroll to their anchor
match (expr: "21,9")

Test Configuration

MUST_ERROR