036 spelled default door refused

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Supporting Files

test_lib/door.kz
test_lib/wrapped.k

Actual compiler output

error[KORU208]: 'lib/door:default(...)' spells the default door explicitly — invoke the module path itself: 'lib/door(...)'
error[KORU208]: 'lib/door:default(...)' spells the default door explicitly — invoke the module path itself: 'lib/door(...)'
error[KORU208]: 'lib/door:default(...)' spells the default door explicitly — invoke the module path itself: 'lib/door(...)'
error: ExplicitDefaultDoorCall
/Users/larsde/src/koru/src/import_pipeline.zig:1342:38: 0x102af3123 in combineImports (koruc)
    if (spelled_door_violations > 0) return error.ExplicitDefaultDoorCall;
                                     ^
/Users/larsde/src/koru/src/main.zig:8357:28: 0x102d0347b in main (koruc)
    const combine_result = try import_pipeline.combineImports(
                           ^

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

'lib/door:default(...)' spells the default door explicitly — invoke the module path itself: 'lib/door(...)'

Flows

flow ~default click a branch to expand · @labels scroll to their anchor
default (name: "root")

Test Configuration

MUST_ERROR

koru.json: