✗
Failing This test is currently failing.
Failed: backend-exec
Failure Output
error[KORU165]: trellis \"kernel-shape\" is not defined - expected ~std/trellis:define(\"kernel-shape\") with pattern arms
--> /Users/larsde/src/koru/tests/regression/100_MODULE_SYSTEM/115_COMPTIME_MIRROR/115_039_trellis_check_in_module/lib.k:13:0 Code
// MIRROR of 680_003_trellis_check_categorize: the trellis definition and its
// `std/trellis:check` dispatch relocated into an imported module, asking its
// question about a kernel flow that stays in the entry file.
//
// Where 115_038 moves a law, this moves a QUESTION whose verdict arrives as
// ordinary branch dispatch resolved at comptime. Same reason for leaving the
// kernel half in the entry: 115_005 already owns kernel's boundary fault.
import std/kernel
import std/io
import app/lib
std/kernel:shape(Body) {
mass: f64,
}
std/kernel:init(Body) {
{ mass: 1.0 },
{ mass: 2.0 },
}
| kernel k |> std/kernel:self { k.mass *= 2.0 }
| computed c |> std/io:print.blk {
mass[0]={{ c[0].mass:f }} mass[1]={{ c[1].mass:f }}
}
app/lib:verdict()
Expected output
mass[0]=2 mass[1]=4
categorized: kernel-shape
Flows
flow ~shape click a branch to expand · @labels scroll to their anchor
shape (expr: Body, source: mass: f64,)
flow ~init click a branch to expand · @labels scroll to their anchor
init (expr: Body, source: { mass: 1.0 },
{ mass: 2.0 },)
flow ~verdict click a branch to expand · @labels scroll to their anchor
verdict
Test Configuration
MUST_RUN