mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
bce7e7a52b
This fixes a regression from a couple of commits ago; breaking from the `else` block of a loop to the loop's tag should be allowed when explicitly targeting the label by name.
11 lines
185 B
Zig
11 lines
185 B
Zig
export fn foo() void {
|
|
const result: u32 = b: {
|
|
continue :b 123;
|
|
};
|
|
_ = result;
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :3:9: error: continue outside of loop or labeled switch expression
|