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 derivedPolyProto to use the correct result type #14148

Merged
merged 1 commit into from Dec 21, 2021

Conversation

smarter
Copy link
Member

@smarter smarter commented Dec 20, 2021

The method parameter was called resultType but inside the method we
use resType which is the result type of the existing PolyProto
instance, so TypeMaps never updated the result type of a PolyProto
before.

According to git blame, this typo was introduced when the class
parameter was renamed back in 2015 in
b5c3a28.

Fixes #14145.

The method parameter was called `resultType` but inside the method we
use `resType` which is the result type of the existing PolyProto
instance, so TypeMaps never updated the result type of a PolyProto
before.

According to git blame, this typo was introduced when the class
parameter was renamed back in 2015 in
b5c3a28.
@smarter smarter linked an issue Dec 20, 2021 that may be closed by this pull request
@smarter smarter requested a review from odersky December 20, 2021 18:54
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Oops. Surprising that this stayed so long in the codebase

@odersky odersky merged commit de42a98 into scala:master Dec 21, 2021
@odersky odersky deleted the fix-derivedPolyProto branch December 21, 2021 13:06
@Kordyjan Kordyjan added this to the 3.1.2 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.

wildApprox failed to remove uninstantiated B
3 participants