Skip to content

RCS1032 False positive targeting "F(G<A,B>(7));" grammar ambiguity #659

Description

@sgkoishi

Product and Version Used:
Roslynator 2.9.0, Visual Studio 2019 16.4.4

Steps to Reproduce:
Demo on SharpLab
Details: icsharpcode/ILSpy#1959 (F(G<A,B>(7)); grammar ambiguity on MSDN)

Actual Behavior:
RCS1032 Remove redundant parentheses. shown for (num < num2)

Expected Behavior:
The parentheses are necessary to avoid ambiguity.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions