Skip to content
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

Drop lazy recursive application in approximateParent #16073

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 19, 2022

This plays badly with any code that inspects bounds deeply when creating constraints
since the LazyRefs create new type variables at unexpected times. Instead, create
the type variables first with empty bounds of the right kind and then add
the bounds to the constraint using subtype tests.

This plays badly with any code that inspects bounds deeply when creating constraints
since the LazyRefs create new type variables at unexpected times. Instead, create
the type variables first with an empty constraint of the right kind and then add
the bounds to the constraint using subtype tests.
@odersky odersky marked this pull request as ready for review September 19, 2022 20:22
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simplification, LGTM!

@odersky odersky merged commit b1b1dfd into scala:main Sep 20, 2022
@odersky odersky deleted the simplify-approximateParent branch September 20, 2022 07:13
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