Skip to content

Erasure#typedSelect: several fixes related to qualifier accessibility #9364

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

Merged
merged 3 commits into from
Jul 16, 2020

Conversation

smarter
Copy link
Member

@smarter smarter commented Jul 14, 2020

No description provided.

smarter added 3 commits July 14, 2020 15:40
Previously, the code would have gone into an infinite loop, instead we
now emit an error like in Scala 2.
The missing `.finalResultType` meant we could end up trying to cast to a
MethodType.
We only need to avoid things which are inaccessible from the JVM point
of view, so `c.a` should typecheck because `protected[foo] trait A` will
be emitted as a public interface.
@smarter
Copy link
Member Author

smarter commented Jul 14, 2020

@djspiewak This fixes the infinite loop you got while compiling cats-effect.

@smarter smarter requested a review from odersky July 14, 2020 14:36
@odersky odersky merged commit 8449fce into scala:master Jul 16, 2020
@odersky odersky deleted the erasure-access-2 branch July 16, 2020 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants