131 scope exit ambiguity names the arm

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

Code

input.k

Supporting Files

fs2.kz

Actual compiler output

error[KORU030]: Resource 'g' <locked!> has multiple discharge options: force-close, unlock. Discharge explicitly.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_131_scope_exit_ambiguity_names_the_arm/input.k:7: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 contain:

has multiple discharge options: force-close, unlock

Flows

flow ~for click a branch to expand · @labels scroll to their anchor
for (0..3)

Test Configuration

MUST_ERROR