007 subflow inline body

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

42
-1

Expected output

42
-1

Flows

flow ~define click a branch to expand · @labels scroll to their anchor
define (name: "check-positive", source: blk: { const Result = union(enum) { positive: i32, negative: void, }; const __value: i32 = {{ expr }}; if (__value > 0) { break :blk Result{ .positive = __value }; } else { break :blk Result{ .negative = {} }; } })
subflow ~classify click a branch to expand · @labels scroll to their anchor
check-positive (expr: input)
flow ~classify click a branch to expand · @labels scroll to their anchor
classify (input: 42)
flow ~classify click a branch to expand · @labels scroll to their anchor
classify (input: -5)

Test Configuration

MUST_RUN