✓
Passing This code compiles and runs correctly.
Code
// Test 642: Basic Default Override
// Tests that user-defined build steps override stdlib defaults
//
// The stdlib provides ~[default] build:step definitions
// User code can override by defining the same name without [default]
// Expected: User's version wins, diagnostic shows "overridden by main"
import std/build
// User overrides the default "run" step
std/build:step(name: "run") {
echo "USER VERSION: Running custom command"
}
// User defines a new step (no default exists)
std/build:step(name: "test") {
echo "Running tests"
}
Flows
flow ~step click a branch to expand · @labels scroll to their anchor
step (name: "run", source: echo "USER VERSION: Running custom command")
flow ~step click a branch to expand · @labels scroll to their anchor
step (name: "test", source: echo "Running tests")