164 release rejects imported prototype

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at runtime:

Program must error when executed.

Error Verification

Actual Compiler Output

error[KORU029]: imported module 'app.lib.proto' is marked ~[prototype] and cannot be built for release (--release) — a release build rejects any prototype module in the graph; make it release-clean or drop --release
  --> /Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_164_release_rejects_imported_prototype/lib/proto.kz:1:0

❌ Compiler coordination error: prototype module rejected in release build
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_164_release_rejects_imported_prototype/backend.zig:95:13: 0x1025cb9d3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_164_release_rejects_imported_prototype/backend.zig:202:28: 0x1025ccb63 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Flows

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

Imported Files

lib/proto.kz

Test Configuration

MUST_FAIL

Compiler Flags:

--release

Expected Error:

KORU029