026 refine eq outside bounds refused

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

Code

input.k

Actual compiler output

error[KORU205]: std/refine(Server): field 'port' refines to nothing — '==5' and '>10' cannot both hold
  --> tests/regression/600_STDLIB/671_REFINE/671_026_refine_eq_outside_bounds_refused/input.k:14:0

Must contain:

refines to nothing

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Server, source: port: i64)
flow ~std/refine click a branch to expand · @labels scroll to their anchor
std/refine (Server, source: port: i64 & ==5 & >10)

Test Configuration

MUST_ERROR