Skip to content

RCS1105 Suggesting Unnecessary Interpolation Incorrectly for $"""a {"\n"} b""" #1634

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

Open
pedrohugorm opened this issue Mar 12, 2025 · 0 comments

Comments

@pedrohugorm
Copy link

The Analyzer is incorrectly indicating an issue with the code below.
However, after applying the auto-fix, the end result in comparison is different.

For the scenario:

$"""a \n b""" != $"""a {"\n"} b"""

On the left, after the code fix.
On the right, the original code.

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

No branches or pull requests

2 participants