198 pointfree choke claims no stage

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

Code

input.kz

Actual compiler output

error[KORU021]: no stage in this chain declares branch 'out-of-rang'
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_198_pointfree_choke_claims_no_stage/input.kz:38:1
    |
 38 | | out-of-rang => gone
    | ^
  hint: a point-free choke claims by name over the whole chain — the chain declares obj.get(|found |not-found), arr.get(|found |out-of-range), as.string(|ok |wrong-type). Check the spelling against those; a name that isn't listed isn't a typo, it's a different model of what this call can return

Frontend must reject with:

CONTAINS no stage in this chain declares branch 'out-of-rang'
CONTAINS the chain declares obj.get(|found |not-found), arr.get(|found |out-of-range), as.string(|ok |wrong-type)
NOT_CONTAINS declares branch 'not-found'

Flows

subflow ~ladder click a branch to expand · @labels scroll to their anchor
obj.get (doc, v: r, key: "choices")
flow ~ladder click a branch to expand · @labels scroll to their anchor
ladder (doc: 1, r: 2)

Test Configuration

MUST_ERROR LANGUAGES: zig cs