008 double dispose refused

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

Code

input.k

Actual compiler output

error[KORU030]: Use-after-discharge: binding 'n' was already discharged and cannot be used
  --> tests/regression/600_STDLIB/682_TREE/682_008_double_dispose_refused/input.k:11:1

Must contain:

Use-after-discharge

Flows

flow ~node click a branch to expand · @labels scroll to their anchor
node (Node, source: item: i64)
flow ~mint click a branch to expand · @labels scroll to their anchor
mint (Node, source: item: 1)

Test Configuration

MUST_ERROR