005 spawn requires cell

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

Code

input.kz

Actual compiler output

[REGISTRY] Creating dispatcher for scope 'cell'
[REGISTRY] Found 0 events
[REGISTRY] Generated 9792 bytes
error[KORU161]: std/fleet:spawn: a fleet member is a cell — name the shape, `cell: room_state` (a declared std/proto)
  --> tests/regression/400_RUNTIME_FEATURES/450_FLEET/450_005_spawn_requires_cell/input.kz:19:0

Must fail at runtime with:

CONTAINS a fleet member is a cell
CONTAINS cell: room_state

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (room_state, source: visits: u32)
flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "cell", source: )
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: node, scope: "cell", world: "", capacity: 8)
flow ~std/fleet click a branch to expand · @labels scroll to their anchor
std/fleet (node)

Test Configuration

MUST_ERROR