Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@akhera99
Copy link
Member

Fixes #77082

@akhera99 akhera99 changed the title Rename - fix conversion operator return type rename Rename - fix conversion operator return type Jul 30, 2025
@akhera99 akhera99 marked this pull request as ready for review July 30, 2025 22:00
@akhera99 akhera99 requested a review from a team as a code owner July 30, 2025 22:00
return underlyingNamedType != null
? new([underlyingNamedType])
: new([]);
}
Copy link
Member

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?

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename symbol does not work when applied on conversion operator return type

3 participants