011 proto ref store seed unknown refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/store:new(leashes): field 'dog' names unknown ref target 'Nope' — ref() takes a declared compound of its home, or a qualified name from another home
  --> tests/regression/600_STDLIB/698_OOP/698_011_proto_ref_store_seed_unknown_refused/input.k:7:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (leashes, capacity: 8, source: dog: ref(Nope))

Test Configuration

MUST_ERROR