031 refine alt disjoint refused

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

Code

input.k

Actual compiler output

refine input:Sample: mode: i64 & 3 | 4
error[KORU205]: std/refine(Sample): field 'mode' refines to nothing — '3 | 4' and '1 | 2' cannot both hold
  --> tests/regression/600_STDLIB/671_REFINE/671_031_refine_alt_disjoint_refused/input.k:13:0

Must contain:

refines to nothing

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Sample, source: mode: i64)
flow ~std/refine click a branch to expand · @labels scroll to their anchor
std/refine (Sample, source: mode: i64 & 1 | 2)
flow ~std/refine click a branch to expand · @labels scroll to their anchor
std/refine (Sample, source: mode: i64 & 3 | 4)

Test Configuration

MUST_ERROR