Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix isSubType for static objects filling in type projections #15959

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 3, 2022

Fixes #15931

This also fixes #8338, which was mis-classified as a neg test before.

@odersky odersky requested a review from dwijnand September 4, 2022 09:02
@odersky odersky merged commit 29e05aa into scala:main Sep 12, 2022
@odersky odersky deleted the fix-15931 branch September 12, 2022 08:22
@dwijnand
Copy link
Member

Sorry, was just getting up to speed. Isn't it important to verifying something on tp1 before relying on isSubPrefix and signatures?

@odersky
Copy link
Contributor Author

odersky commented Sep 12, 2022

In this case I think it's OK. The isPrefixDependentMemberRef test is needed to exclude things that cannot be overridden. But there is no similar condition on tp1.

(I usually merge my PRs if I think they are uncontentious when they sat around for a week in order to move things along.)

@Kordyjan Kordyjan added this to the 3.2.2 milestone Aug 1, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants