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

C#: Adding synthetic implicit ToString calls in binary expressions. #18446

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Jan 8, 2025

In this PR we get the ball rolling on synthesizing compiler generated ToString calls.
As a start we introduce ToString calls in binary expressions for concatenating strings.
That is, "abc" + x -> "abc" + x.ToString()

@github-actions github-actions bot added the C# label Jan 8, 2025
@michaelnebel michaelnebel force-pushed the csharp/implicittostring2 branch from 8616405 to 7ba7af1 Compare January 9, 2025 09:32
@michaelnebel michaelnebel force-pushed the csharp/implicittostring2 branch from 7ba7af1 to 9959976 Compare January 9, 2025 10:43
@michaelnebel michaelnebel force-pushed the csharp/implicittostring2 branch 2 times, most recently from 64a2912 to b2712e0 Compare January 9, 2025 11:43
@michaelnebel michaelnebel force-pushed the csharp/implicittostring2 branch from b2712e0 to ee23271 Compare January 9, 2025 11:46
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.

1 participant