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

'Convert to interpolated string' produces nonsense when involving raw string literal #61256

Open
jnm2 opened this issue May 11, 2022 · 1 comment · May be fixed by #76021
Open

'Convert to interpolated string' produces nonsense when involving raw string literal #61256

jnm2 opened this issue May 11, 2022 · 1 comment · May be fixed by #76021
Assignees
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@jnm2
Copy link
Contributor

jnm2 commented May 11, 2022

Version Used: 17.3-p1

var someVariable = "Some text";

var fullText = someVariable [||]+ """
    Appended line
    """;

💡 Convert to interpolated string:

var someVariable = "Some text";

var fullText = $"{someVariable}""
    Appended line
    """;

Which is invalid syntax producing CS1002, CS1010, and CS8997.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 11, 2022
@CyrusNajmabadi
Copy link
Member

that's just wacky :)

@CyrusNajmabadi CyrusNajmabadi added Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it and removed untriaged Issues and PRs which have not yet been triaged by a lead labels May 11, 2022
@github-project-automation github-project-automation bot moved this to InQueue in Small Fixes Oct 22, 2024
@arunchndr arunchndr added this to the 18.0 milestone Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
Status: InQueue
Development

Successfully merging a pull request may close this issue.

4 participants