Skip to content

Commit

Permalink
Add repro for #8522
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Pohlmann committed Jan 17, 2024
1 parent fa811d7 commit aef8caa
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 aef8caa

Please sign in to comment.