Skip to content
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

Find illegal use of private members #10

Open
davidhesselbom opened this issue Jul 30, 2015 · 1 comment
Open

Find illegal use of private members #10

davidhesselbom opened this issue Jul 30, 2015 · 1 comment
Milestone

Comments

@davidhesselbom
Copy link
Contributor

Find usage of other classes' private functions and variables, for instance

Foo: class {
    _x: Int
    init: func
}
foo := Foo new()
foo _x = 1 // bad, only Foo instances themselves should have immediate access to _x
@davidpiuva
Copy link

Preventing use files from showing private members would allow other classes in the same framework (mostly regression tests) to have private access while hiding it to basic callers. Import declarations will then have full access in case you need it.

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

No branches or pull requests

2 participants