-
-
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
Visibility modifiers on container members #569
Comments
Good call, I need to address this. (3) should be solved with #462 |
If possible, tests (but not examples) should be able to invoke private methods and access private members. The usual advice for such situations is to restructure the code so that privates could be tested through public interface, or to extract private code out, but this leads to unneeded increase of complexity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Eg. these
which seem to do nothing (you can call private methods from anywhere AFAICT). Basically, I wanted to know if these are just unimplemented and what they're supposed to do.
pub
on struct methods though and the parser allows them in all the places above.export
modifier in particular seems pretty meaningless on fields.The text was updated successfully, but these errors were encountered: