037 default discharge must be void

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

Code

input.kz

Actual compiler output

error[KORU083]: [!] annotation requires a void tor (no branches, no `-> T` return) - a tor with output cannot be auto-inserted
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_037_default_discharge_must_be_void/input.kz:10:0

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Compiler must reject:

Compilation must fail with a diagnostic.

Test Configuration

MUST_ERROR