Version: SonarCloud 8.2
When using c# is Type
expressions where the type is bool and using pattern matching with variable assignment the rule csharpsquid:S2589 is hit because sonarcloud thinks the result of the is type expression is assigned to the variable, when in fact the value of the left hand variable is assigned to a new variable.
See SonarCloud project for reproduction:
https://sonarcloud.io/project/issues?id=Mobrockers_SonarCloudIsTypePatternMatchingAssignmentRepro&issues=AXCxobtQAFhjSEJCkK25&open=AXCxobtQAFhjSEJCkK25
Reproduction repository: