✓
Passing Passing: the compiler rejects this program as expected.
Code
// A field type that is neither payload material (scalar/terminal) nor a
// node-registered edge refuses at declaration (KORU184).
import std/tree
std/tree:node(Node) { item: Nonsense }
Actual compiler output
error[KORU184]: std/tree:node(Node): field 'item' names unknown type 'Nonsense' — a node field must be a scalar material, a proto terminal of its home, a node-registered edge, ref(T), or an owned leaf `*mod:Type<state!>`
--> tests/regression/600_STDLIB/682_TREE/682_004_field_unknown_type/input.k:6:1Must contain:
KORU184Flows
flow ~node click a branch to expand · @labels scroll to their anchor
node (Node, source: item: Nonsense)
Test Configuration
MUST_ERROR