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

Invalid code for comments inside expressions in interpolated strings #774

Closed
IT-CASADO opened this issue Dec 21, 2022 · 0 comments · Fixed by #775
Closed

Invalid code for comments inside expressions in interpolated strings #774

IT-CASADO opened this issue Dec 21, 2022 · 0 comments · Fixed by #775
Labels
area:formatting type:bug Something isn't working
Milestone

Comments

@IT-CASADO
Copy link

Example input:

var sb = new StringBuilder();
sb.AppendLineFormat(
    $"{operation.TenantId /* SOME COMMENT */} ({operation.TenantId})"
);

Broken output:

var sb = new StringBuilder();
sb.AppendLineFormat(
    $"{operation.TenantId /* SOME COMMENT */
    } ({operation.TenantId})"
);

There is an additional new line which breaks the build.

@belav belav added type:bug Something isn't working area:formatting labels Dec 22, 2022
@belav belav added this to the 0.22.0 milestone Dec 22, 2022
belav added a commit that referenced this issue Dec 22, 2022
@belav belav closed this as completed in #775 Jan 4, 2023
belav added a commit that referenced this issue Jan 4, 2023
closes #774

Co-authored-by: Lasath Fernando <devel@lasath.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:formatting type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants