Skip to content

Commit

Permalink
S3220: Add FP Repro for #8522 (#8557)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Pohlmann authored Jan 17, 2024
1 parent 4e28116 commit 929fbe6
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,16 @@ public void AccessibilityAcrossAssemblies()
}
}
}

// https://github.com/SonarSource/sonar-dotnet/issues/8522
class Repro_8522
{
T Get<T>(params string[] key) => default;

string Get(string key) => default;

void Test()
{
Get<string>("text"); // Noncompliant FP
}
}

0 comments on commit 929fbe6

Please sign in to comment.