We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.10.0-dev.4247+3234e8de3
pub fn main() void { if (1) |x| _ = x; }
$ zig run x.zig x.zig:2:18: error: expected optional type, found 'comptime_int' if (1) |x| _ = x; ^
$ zig run x.zig x.zig:2:18: error: expected optional type, found 'comptime_int' if (1) |x| _ = x; ~~^~~
stage1 gets it right:
$ zig run x.zig -fstage1 ./x.zig:2:9: error: expected optional type, found 'comptime_int' if (1) |x| _ = x; ^
The text was updated successfully, but these errors were encountered:
Same cause as #13023
Sorry, something went wrong.
No branches or pull requests
Zig Version
0.10.0-dev.4247+3234e8de3
Steps to Reproduce
Expected Behavior
Actual Behavior
stage1 gets it right:
The text was updated successfully, but these errors were encountered: