069 reject undischarged string obligation

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

Code

input.k

Actual compiler output

error[KORU030]: Resource 's' obligation <unsanitized!> was not discharged. No tor accepts <!unsanitized>.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_069_reject_undischarged_string_obligation/input.k:18:0

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

Must fail at runtime:

Program must error when executed.

Error output must contain

Resource 's' obligation <unsanitized!> was not discharged. No tor accepts <!unsanitized>.

Flows

flow ~get-input click a branch to expand · @labels scroll to their anchor
get-input

Test Configuration

MUST_ERROR