014 bare ref is home scoped

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

Code

input.k

Supporting Files

alpha.k
beta.k

Actual compiler output

error[KORU173]: std/proto(Player): field 'health' names unknown terminal 'Health' — a field must use a scalar material, a terminal or compound of its own home, or a qualified name from another home
  --> tests/regression/600_STDLIB/665_PROTO/665_014_bare_ref_is_home_scoped/input.k:8:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Player, source: health: Health)

Test Configuration

MUST_ERROR