124 union discharger named in diagnostic

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

Code

input.kz

Actual compiler output

error[KORU030]: Resource 'h2' obligation <closing!> was not discharged. Call: finalize
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_124_union_discharger_named_in_diagnostic/input.kz:52:0

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

Output must match:

# The obligation must still be REFUSED — that half already works and must not regress.
CONTAINS error[KORU030]
# The falsehood: a discharger for <!closing> is declared in this very file.
NOT_CONTAINS No tor accepts
# The message's own vocabulary for "candidates are known" (as used for <opened!>),
# in the singular: `finalize` is the only candidate, so it is named as the answer
# rather than as a choice among many.
CONTAINS Call: finalize

Flows

flow ~open click a branch to expand · @labels scroll to their anchor
open

Test Configuration

MUST_ERROR