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

FN S2190: No issues raised if recursion is inside a ConversionOperatorDeclaration #6643

Closed
csaba-sagi-sonarsource opened this issue Jan 16, 2023 · 0 comments · Fixed by #8464
Assignees
Labels
Area: C# C# rules related issues. Type: False Negative Rule is NOT triggered when it should be.
Milestone

Comments

@csaba-sagi-sonarsource
Copy link
Contributor

csaba-sagi-sonarsource commented Jan 16, 2023

Description

No issues are raised if recursion is inside a ConversionOperatorDeclaration.

Repro steps

public class Digit
{
    public static implicit operator byte(Digit d) => d; // FN
}

Expected behavior

Issues should be raised if recursion is inside a ConversionOperatorDeclaration.

Actual behavior

No issues are raised if recursion is inside a ConversionOperatorDeclaration.

Known workarounds

Related information

  • C#/VB.NET Plugins version: 8.51.0.59060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Type: False Negative Rule is NOT triggered when it should be.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants