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.
orelse
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
const std = @import("std"); test "orelse in tuple" { var opt: ?u32 = 1; std.debug.warn("A tuple: ({}, {}, {})\n", .{ 1, 2, opt orelse 3 }); }
λ zig test tuples.zig /Users/giann/tmp-code/tuples.zig:5:67: error: duplicate struct field: '2' std.debug.warn("A tuple: ({}, {}, {})\n", .{ 1, 2, opt orelse 3 }); ^ /Users/giann/tmp-code/tuples.zig:5:67: note: other field here std.debug.warn("A tuple: ({}, {}, {})\n", .{ 1, 2, opt orelse 3 });
The text was updated successfully, but these errors were encountered:
Looks like the same thing as #3882
Sorry, something went wrong.
Seems like it i'll add this example to it
No branches or pull requests
The text was updated successfully, but these errors were encountered: