✓
Passing This code compiles and runs correctly.
Code
// Test 643: Multiple Defaults Error (MUST_FAIL)
// Tests that having multiple [default] definitions for the same name is an error
//
// This is a STDLIB BUG - only one default per name is allowed
// Expected: Compilation error "Multiple default implementations for 'test'"
~import "$std/build"
~import "$app/lib/extra_build"
// This file defines ONE default
~[default]
std.build:step(name: "test") {
echo "Main test implementation"
}
Imported Files
// This module ALSO defines a default "test" - this is the error!
~import "$std/build"
~[default]
std.build:step(name: "test") {
echo "Extra test implementation - THIS IS A BUG!"
}
Test Configuration
MUST_FAIL
Expected Behavior:
FRONTEND_COMPILE_ERROR