Skip to content

Fix #7602: Avoid infinite loop with anonymous projection #7666

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
Dec 2, 2019

Conversation

smarter
Copy link
Member

@smarter smarter commented Dec 2, 2019

Type#findMember has very careful logic for doing prefix substitution
with a recursive type, but it turns out we don't need to run any of that
if the prefix is already correct, and it avoids infinite loops in the
added testcase.

`Type#findMember` has very careful logic for doing prefix substitution
with a recursive type, but it turns out we don't need to run any of that
if the prefix is already correct, and it avoids infinite loops in the
added testcase.
@odersky odersky merged commit e476fe8 into scala:master Dec 2, 2019
@odersky odersky deleted the fix-projection-loop branch December 2, 2019 19:52
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