Skip to content

Fix trait parameter passing algorithm #11410

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 3 commits into from
Feb 15, 2021
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 14, 2021

Fix algorithm how to pass trait parameters when some of the parameters have independent overrides. With the fix we are back to the rule that for every trait parameter there must be an argument, which is cleaner in the end.

This reverts the spec change for #11214 we did last week. To avoid spec jitter in releases, it would be good to ship this with RC1.

As part of the fix, we now also detect missing trait constructors.

Fixes scala#11214
Fixes scala#11344
@odersky odersky requested a review from julienrf February 14, 2021 09:41
@odersky odersky added this to the 3.0.0-RC1 milestone Feb 14, 2021
@odersky odersky linked an issue Feb 14, 2021 that may be closed by this pull request
@anatoliykmetyuk anatoliykmetyuk mentioned this pull request Feb 15, 2021
35 tasks
@anatoliykmetyuk anatoliykmetyuk requested review from liufengyun and removed request for julienrf February 15, 2021 14:47
liufengyun
liufengyun previously approved these changes Feb 15, 2021
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@liufengyun liufengyun merged commit 53a2dc5 into scala:master Feb 15, 2021
@liufengyun liufengyun deleted the fix-11344 branch February 15, 2021 21:01
@Kordyjan Kordyjan modified the milestones: 3.0.0-RC1, 3.0.0 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.

It's the wrong trait parameter, Gromit
4 participants