-
Notifications
You must be signed in to change notification settings - Fork 509
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
SA1119 reports incorrect unnecessary parenthesis in string interpolation #1284
Comments
Nice catch! Im going to have a look at it |
Would take a look myself, but still at work! 😄 |
If you want to fix it go ahead! |
I wouldn't be able to get to it until later, so unless I've specifically mentioned here that I'm looking at it, assume I haven't had time yet. 👍 |
So who took it? 😄 |
Im going to fix this now |
Yeah, sorry... didn't have time to look at it yet. 😞 Go for it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This snippet triggers SA1119:
But this is actually correct syntax for using the ternary operator inside a C# 6.0 interpolated string; there's no way to write it without the parenthesis. The code fix (removing the parenthesis) causes the code to be uncompilable.
The text was updated successfully, but these errors were encountered: