013 ambiguous override error

✓ Passing This code compiles and runs correctly.

Code

// Test 644: Ambiguous Override Error (MUST_FAIL)
// Tests that multiple non-default definitions with the same name is an error
//
// When multiple user modules define the same step (without [default]),
// it's ambiguous which one to use.
// Expected: Compilation error "Ambiguous step definition for 'build'"

~import "$std/build"
~import "$app/lib/build_config"

// User defines "build" step here
~std.build:step(name: "build") {
    echo "Build from main"
}
input.kz

Imported Files

// This module ALSO defines "build" (no default marker)
// This creates ambiguity - which one should be used?

~import "$std/build"

~std.build:step(name: "build") {
    echo "Build from build_config - AMBIGUOUS!"
}
lib/build_config.kz

Test Configuration

MUST_FAIL

Expected Behavior:

FRONTEND_COMPILE_ERROR