-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Non-pub decl occasionally polluting the pub namespace #21604
Comments
This was an intentional simplification to the rules of Note also #20663. |
Is there any information to what exactly the simplification was? The error message is totally puzzling and leaving me clueless of what is wrong in the source code. In particular, I was assuming that maybe |
Non- These rules may be reviewed again if #20663 is rejected. |
Edit: the latter part of the statement was not correct, so nevermind. |
Zig Version
0.14.0-dev.1694+3b465ebec
Steps to Reproduce and Observed Behavior
Create and compile the following code distributed across the 4 files and 2 folders as the comments say.
Observe the following error:
Now comment out the declaration of
const S
inuse_s.zig
. The code compiles now.Expected Behavior
The code compiles in both cases
The text was updated successfully, but these errors were encountered: