-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Private trait methods should be available to types that implement them #605
Comments
I'm having trouble reproducing it:
There's no error raised here. I'm probably missing some context here... |
@bartlomieju I don't remember what the original way to reproduce this was. I wouldn't be surprised if making private symbols namespace private (instead of module private) fixed part of this. However, the following still fails:
This fails with:
If the method |
This commit fixes type checking of class that implement a trait which contains a private method with a default implementation. Previously usage of such method resulted in an error during type checking saying that the method is private. Changelog: fixed Closes inko-lang#605
This commit fixes type checking of class that implement a trait which contains a private method with a default implementation. Previously usage of such method resulted in an error during type checking saying that the method is private. Changelog: fixed Closes inko-lang#605
This commit fixes type checking of class that implement a trait which contains a private method with a default implementation. Previously usage of such method resulted in an error during type checking saying that the method is private. Changelog: fixed Closes inko-lang#605
This commit fixes type checking of class that implement a trait which contains a private method with a default implementation. Previously the usage of such method resulted in an error during type checking saying that the method is private. Changelog: fixed Closes inko-lang#605
This commit fixes type checking of class that implement a trait which contains a private method with a default implementation. Previously the usage of such method resulted in an error during type checking saying that the method is private. This fixes #605. Changelog: fixed
When a class implements a trait that provides private methods, these methods should be available to the class, regardless of what module/namespace the trait is defined in. This removes the need for making such methods public in order to use them, which in turn prevents leaking of implementation details.
The text was updated successfully, but these errors were encountered: