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.13.0-dev.210+c37872bcf
const std = @import("std"); test { const E = enum { foo, bar, pub const foo: u8 = 4; pub const qux: u8 = 7; }; std.log.warn("{}", .{E.foo}); }
❯ zig test test.zig Test [1/1] test_0... [default] (warn): 4 All 1 tests passed.
compile error saying E.foo is ambiguous. E.bar accesses field E.qux accesses decl
E.foo
E.bar
E.qux
The text was updated successfully, but these errors were encountered:
Solution for this covered in this accepted proposal #959 (comment)
Sorry, something went wrong.
No branches or pull requests
Zig Version
0.13.0-dev.210+c37872bcf
Steps to Reproduce and Observed Behavior
Expected Behavior
compile error saying
E.foo
is ambiguous.E.bar
accesses fieldE.qux
accesses declThe text was updated successfully, but these errors were encountered: