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

Do no widen constant type on selector type in inline matches #12902

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Jun 22, 2021

Fixes #12715

tests/pos/i12715/full.scala Outdated Show resolved Hide resolved
@tgodzik
Copy link
Contributor Author

tgodzik commented Jun 23, 2021

It seems a lot of tests start to fail :/ I will take a look

@tgodzik tgodzik force-pushed the fix-12715 branch 2 times, most recently from a328b27 to 95dafed Compare June 23, 2021 20:07
@tgodzik tgodzik changed the title Do not widen selector type in inline matches Do no widen constant type on selector type in inline matches Jun 24, 2021
@tgodzik
Copy link
Contributor Author

tgodzik commented Jun 24, 2021

Ok, it seems to work now, although not 100 % sure about the solution.

@nicolasstucki
Copy link
Contributor

@anatoliykmetyuk could you double-check my changes?

@nicolasstucki nicolasstucki merged commit c53cc91 into scala:master Jul 28, 2021
@Kordyjan Kordyjan added this to the 3.1.0 milestone Aug 2, 2023
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.

Getting Cannot reduce inline even though equivalent code compiles
4 participants