009 reject group under alternation

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

Code

input.k

Actual compiler output

error[KORU162]: regex: cannot compile pattern `a|(?<x>b)`: GroupUnderAlternation
  --> tests/regression/600_STDLIB/640_REGEX/640_009_reject_group_under_alternation/input.k:7:0

Must contain:

GroupUnderAlternation

Flows

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

Test Configuration

MUST_ERROR