shadowing rejected

○ Planned This feature is planned but not yet implemented.

This should be done, it is lazily handled by the Zig-compiler, look at the README.md-file in this directory for the problem.

Error Details

output_emitted.zig:83:15: error: redeclaration of local constant 'r'

Failure Output

Showing last 10 of 105 lines
[MAIN DEBUG]   emitted_file = output_emitted.zig
[MAIN DEBUG]   emitted_file.ptr = u8@1006ea29e
[MAIN DEBUG]   First 50 bytes: // Access compiler flags from backend.zig via root

Error: output_emitted.zig:83:15: error: redeclaration of local constant 'r'
        const r = result_1.data;
              ^
output_emitted.zig:80:15: note: previous declaration here
        const r = result_0.result;
              ^

Code

input.kz

Test Configuration

Expected Error:

error: capture 'r' shadows capture from outer scope