Skip to content

higher operator precedence of try #2138

New issue

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

Closed
shawnl opened this issue Mar 29, 2019 · 1 comment
Closed

higher operator precedence of try #2138

shawnl opened this issue Mar 29, 2019 · 1 comment

Comments

@shawnl
Copy link
Contributor

shawnl commented Mar 29, 2019

It is not even documented in the precedence table https://ziglang.org/documentation/master/#Precedence

/home/shawn/git/zig/std/base64.zig:130:89: error: bit shifting operation expected integer type, found /home/shawn/git/zig/std/base64.zig:130:89: error: bit shifting operation expected integer type, found '@typeOf(base64.Base64Decoder.charToIndex).ReturnType.ErrorSet!u6'
                dest[dest_cursor + 0] = try decoder.charToIndex(source[src_cursor + 0]) << 2 | try decoder.charToIndex(source[src_cursor + 1]) >> 4;
                                                                                        ^
@andrewrk
Copy link
Member

This will be resolved by #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants