-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Only implement a deferred given in a class if its parent won't implement it #21206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure that's the right fix. Should we not simply inherit the definition in the superclass?
Oooh, right. Of course, simply not generating this member in the child class should be way better, I will try to do that. |
I think the logic should be that we implement a deferred given from trait T in class C if
|
50dc7b5
to
532c287
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix!
[Cherry-picked 6837445]
Backports #21316 to the 3.5.2 branch. PR submitted by the release tooling. [skip ci]
It should be possible to extend a class that inherits a deferred given, so a generated given implementation should not be final.
closes #21189