009 cross module impl inline body

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

42
0

Expected output

42
0

Flows

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

Test Configuration

MUST_RUN