017 refine nonint terminal refused

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

Code

input.k

Actual compiler output

error[KORU205]: std/refine(Contact): field 'email' constrains base 'Email' — bounds and clamps refine integer scalars only
  --> tests/regression/600_STDLIB/671_REFINE/671_017_refine_nonint_terminal_refused/input.k:16:0

Must contain:

integer scalars only

Flows

flow ~string click a branch to expand · @labels scroll to their anchor
string (expr: Email)
flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Contact, source: email: Email)
flow ~std/refine click a branch to expand · @labels scroll to their anchor
std/refine (Contact, source: email: Email & >5)

Test Configuration

MUST_ERROR