125 captured arm if names undeclared branch

✗ Failing This test is currently failing.

Failed: wrong-error

Error Details

output_emitted.zig:120:75: error: incompatible types: 'i64' and 'usize'

Failure Output

Showing last 10 of 16 lines
                                                                   ~^~~~~
output_emitted.zig:120:77: note: type 'usize' here
        { const x = __koru_item4; _ = &x;                 a.hits = a.hits + x;
                                                                            ^
referenced by:
    main: output_emitted.zig:292:22
    callMain [inlined]: /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/std/start.zig:618:22
    callMainWithArgs [inlined]: /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/std/start.zig:587:20
    main: /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/std/start.zig:602:28
    1 reference(s) hidden; use '-freference-trace=5' to see all references

Code

input.k

Actual compiler output

🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission)
Error: output_emitted.zig:120:75: error: incompatible types: 'i64' and 'usize'
        { const x = __koru_item4; _ = &x;                 a.hits = a.hits + x;
                                                                   ~~~~~~~^~~
output_emitted.zig:120:69: note: type 'i64' here
        { const x = __koru_item4; _ = &x;                 a.hits = a.hits + x;
                                                                   ~^~~~~
output_emitted.zig:120:77: note: type 'usize' here
        { const x = __koru_item4; _ = &x;                 a.hits = a.hits + x;
                                                                            ^
referenced by:
    main: output_emitted.zig:292:22
    callMain [inlined]: /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/std/start.zig:618:22
    callMainWithArgs [inlined]: /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/std/start.zig:587:20
    main: /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/std/start.zig:602:28
    1 reference(s) hidden; use '-freference-trace=5' to see all references

Must fail at runtime with:

NOT_CONTAINS output_emitted.zig
CONTAINS KORU021
CONTAINS has no branch 'missing'

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (bits: 8)

Test Configuration

MUST_ERROR