Skip to content

Fix liftToClasses for opaque types #6712

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 4 commits into from
Jun 20, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 19, 2019

liftToClasses used to drop an opaque types from the set of
types whose companion modules are included. Opaque types
do not have companion modules, but their prefixes might,
so it is incorrect to drop them.

odersky added 3 commits June 19, 2019 22:34
liftToClasses used to drop an opaque types from the set of
types whose companion modules are included. Opaque types
do not have companion modules, but their prefixes might,
so it is incorrect to drop them.
The difference is that in an alias type `p.A = q.B`
we take `p` instead of `q` as the prefix to search.
@odersky odersky merged commit 2c84a78 into scala:master Jun 20, 2019
@allanrenucci allanrenucci deleted the fix-liftToClasses branch June 20, 2019 18:22
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