-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unable to call recursive private inline method defined in a trait #11706
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
Comments
Should you be able to inline a method at a call site which shouldn't be accessible at that call site? If not, the problem here is that the object version in fact works. |
In fact, it seems the version with an object does not work either. I get:
|
@odersky That error is a bit confusing. I managed to reproduce and minimize further the error I originally reported: it happens only when we call a |
They can't be made `private` because of scala/scala3#11706 But private[generic] seems to work and is better than public
[skip community_build] closes scala#11706
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.0
Minimized code
Output
When I call the variant in the trait, I get this error. But the same code works fine with an object.
Expectation
Both versions work.
The text was updated successfully, but these errors were encountered: