We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.9.0-dev.1952+5d1aab72d
//bug.zig pub fn main() void { const T = blk: { if (true) break :blk u32; break :blk u8; }; comptime { _ = T; } }
zig build-exe bug.zig
The program should compile with no errors.
./bug.zig:3:30: error: cannot store runtime value in type 'type' if (true) break :blk u32;
The text was updated successfully, but these errors were encountered:
Duplicate of #3376
Sorry, something went wrong.
No branches or pull requests
Zig Version
0.9.0-dev.1952+5d1aab72d
Steps to Reproduce
zig build-exe bug.zig
Expected Behavior
The program should compile with no errors.
Actual Behavior
The text was updated successfully, but these errors were encountered: