002 effect branch capture shadow

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at backend compile:

Code generation must reject the program.

Error Verification

Expected Error Pattern

true

Actual Compiler Output

🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission)
Error: output_emitted.zig:109:25: error: capture 'x' shadows local constant from outer scope
                .hi => |x| {
                        ^
output_emitted.zig:105:17: note: previous declaration here
        { const x = i; _ = &x;             const result_e0_0 = main_module.classify_event.handler(.{ .v = x });
                ^

Test Configuration

MUST_FAIL

Expected Error:

capture 'x' shadows function parameter from outer scope