✓
Passing This code compiles and runs correctly.
Code
// TEST: self|fpga takes no `[param]` — KORU122.
//
// `|mlir[gpu]` uses the bracket to select a lowering of the same
// representation. `|fpga` has exactly one lowering — the tag selects the
// artifact pipeline whole — so a parameter is a spelling error, refused by
// name rather than silently ignored.
import std/kernel
import std/io
std/kernel:shape(Sample) {
value: i64,
}
std/kernel:init(Sample) {
{ value: 4 },
}
| kernel k |> std/kernel:self|fpga[asic] { k.value *= 2 }
| computed c |> std/io:print.blk {
v={{ c[0].value:d }}
}
Error output must contain
`self|fpga` takes no `[asic]` lowering parameterFlows
flow ~shape click a branch to expand · @labels scroll to their anchor
shape (expr: Sample, source: value: i64,)
flow ~init click a branch to expand · @labels scroll to their anchor
init (expr: Sample, source: { value: 4 },)