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

Fix #19445: Remove too-strict test in match type matching. #19511

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Jan 22, 2024

Previously, for a BaseTypeTest, we explicitly checked the prefix of the type constructor for =:=. This is however too strict, as shown by #19445. We remove the test entirely, as the correct subprefixing test is already part of the overall
scrut <:< instantiatedPat done at the end.

Previously, for a `BaseTypeTest`, we explicitly checked the prefix
of the type constructor for `=:=`. This is however too strict, as
shown by scala#19445. We remove the test entirely, as the correct
subprefixing test is already part of the overall
`scrut <:< instantiatedPat` done at the end.
@odersky odersky merged commit 21c2289 into scala:main Jan 23, 2024
19 checks passed
@odersky odersky deleted the fix-i19445 branch January 23, 2024 16:06
@Kordyjan Kordyjan added this to the 3.4.1 milestone Feb 14, 2024
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.

3 participants