167 prototype scope must not leak across modules

○ Planned This feature is planned but not yet implemented.

OWED hole: [prototype] is per-module — a non-prototype import keeps full exhaustiveness. Today the leak compiles.

Failure Output

📋 prototype gaps — tor 'greet' (/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_167_prototype_scope_must_not_leak_across_modules/helper.kz:17):
     hole       — 'err' unhandled → @panic if reached
🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission)

Code

input.kz

Supporting Files

helper.kz

Actual compiler output

📋 prototype gaps — tor 'greet' (/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_167_prototype_scope_must_not_leak_across_modules/helper.kz:17):
     hole       — 'err' unhandled → @panic if reached
🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission)

Must fail at runtime:

Program must error when executed.

Error output must contain

KORU022

Test Configuration

MUST_ERROR