061 phantom autodispose

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

Test start
  Using: Resource: AutoDisposed
  Auto-discharge called!
Test done

Expected output

Test start
  Using: Resource: AutoDisposed
  Auto-discharge called!
Test done

Flows

flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "Test start")
flow ~create-resource click a branch to expand · @labels scroll to their anchor
create-resource (name: "AutoDisposed")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "Test done")

Test Configuration

MUST_RUN