Skip to content

Properly erase Java intersections #8946

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 1 commit into from
May 18, 2020

Conversation

smarter
Copy link
Member

@smarter smarter commented May 11, 2020

Java intersections erase to their first member which is always a class
type. To enforce this we need to:

  • Make sure we don't use & when creating these intersections
  • Make sure simplified does not simplify intersections
    which appear in method types.

@smarter smarter force-pushed the java-intersection-erasure branch from 6e7debe to de9669e Compare May 11, 2020 11:56
Java intersections erase to their first member which is always a class
type. To enforce this we need to:
- Make sure we don't use `&` when creating these intersections
- Make sure `simplified` does not simplify intersections
  which appear in method types.
@smarter smarter changed the title Properly erase Jave intersections Properly erase Java intersections May 11, 2020
@smarter smarter force-pushed the java-intersection-erasure branch from de9669e to a543e00 Compare May 11, 2020 11:57
@smarter smarter requested a review from odersky May 11, 2020 11:57
@smarter
Copy link
Member Author

smarter commented May 15, 2020

Ping for review.

@odersky odersky merged commit bbc7e21 into scala:master May 18, 2020
@odersky odersky deleted the java-intersection-erasure branch May 18, 2020 12:38
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