✓
Passing This code compiles and runs correctly.
Code
// Pins the item gate, flag-present half: with --my-flag the same gated
// override survives and answers 210 instead of the default 42.
~import std/io
~import app/test_lib/override
~[abstract] tor calc { n: i64 } -> i64
~proc calc|zig {
return n * 2;
}
~calc(n: 21): r |> std/io:print.ln("{{ r:d }}")
Supporting Files
// Same override module as 310_126: unconditional import, gated item.
~import std/compiler
~std/compiler:flag.declare {
"name": "my-flag",
"description": "Enable the gated calc override (item-gate pin)",
"type": "boolean"
}
~[flag(my-flag)]input:calc -> n * 10
Actual
210
Expected output
210
Flows
flow ~calc click a branch to expand · @labels scroll to their anchor
calc (n: 21)
Test Configuration
MUST_RUN
Compiler Flags:
--my-flag