-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Rename - fix conversion operator return type #79690
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
base: main
Are you sure you want to change the base?
Rename - fix conversion operator return type #79690
Conversation
| return underlyingNamedType != null | ||
| ? new([underlyingNamedType]) | ||
| : new([]); | ||
| } |
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'm not getting the cascadign logic here. Can you clarify why this is needed?
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.
Yeah, what I was seeing was that only the original symbol (the conversion operator) was getting renamed. Did a test if I tried renaming the class name and saw that it cascaded down to the constructor but there wasn't any similar logic, for the explicit conversion, to cascade up to the return type.
Co-authored-by: Joey Robichaud <[email protected]>
Co-authored-by: Joey Robichaud <[email protected]>
Fixes #77082