Skip to content

Code fix for RCS1197 should add parentheses if necessary#928

Merged
josefpihrt merged 7 commits intodotnet:mainfrom
karl-sjogren:feature/RCS1197-bug
Jul 18, 2022
Merged

Code fix for RCS1197 should add parentheses if necessary#928
josefpihrt merged 7 commits intodotnet:mainfrom
karl-sjogren:feature/RCS1197-bug

Conversation

@karl-sjogren
Copy link
Contributor

Fixes #923.

This only takes care of the example in the issue, it doesn't consider if there are other cases where this should be done as well.

@josefpihrt josefpihrt changed the title Codefix for RCS1197 should add parenthesis around non literal expressions Code fix for RCS1197 should add parentheses if necessary Jul 18, 2022
@josefpihrt josefpihrt merged commit 68f63bb into dotnet:main Jul 18, 2022
@josefpihrt
Copy link
Collaborator

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RCS1197 bug in optimization suggest when calculation is involved.

2 participants