011 lifo release order

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

open(a.txt)
open(b.txt)
close-file() ran for 'b.txt'
[BRIDGE] Invoked 'close-file' for handle 'b.txt' [main:opened]
close-file() ran for 'a.txt'
[BRIDGE] Invoked 'close-file' for handle 'a.txt' [main:opened]
held before hang-up: 2

Expected output

open(a.txt)
open(b.txt)
close-file() ran for 'b.txt'
[BRIDGE] Invoked 'close-file' for handle 'b.txt' [main:opened]
close-file() ran for 'a.txt'
[BRIDGE] Invoked 'close-file' for handle 'a.txt' [main:opened]
held before hang-up: 2

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "files", source: open(10) close-file(1))
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "session-1", scope: "files")

Test Configuration

MUST_RUN