019 explain reports refusals

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

Code

input.k

Actual compiler output

error[KORU205]: std/refine(Ghost): no declaration named 'Ghost' in home 'input' to refine — refine meets a `std/proto` declaration
  --> tests/regression/600_STDLIB/671_REFINE/671_019_explain_reports_refusals/input.k:11:0

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

Must contain:

KORU205

Flows

flow ~string click a branch to expand · @labels scroll to their anchor
string (expr: Email)
flow ~std/refine click a branch to expand · @labels scroll to their anchor
std/refine (Ghost, source: port: i64 & >1024)
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

Post-validation Script: