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

Add test for StackOverflow question 68877939 #21775

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Conversation

mbovel
Copy link
Member

@mbovel mbovel commented Oct 15, 2024

https://stackoverflow.com/q/68877939/21927647

Answer to the question:

You were not doing anything wrong, this was an implementation limitation.

Your example compiles successfully since Scala 3.4, thanks to the changes introduced in SIP-56 "Proper specification for match types" (text, PR).

@mbovel mbovel requested a review from sjrd October 15, 2024 15:24
Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

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

Sure.

@mbovel mbovel enabled auto-merge October 15, 2024 15:35
@mbovel mbovel merged commit 472c047 into scala:main Oct 15, 2024
26 checks passed
@mbovel mbovel deleted the mb/so68877939 branch October 15, 2024 18:54
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