Files
codeql/csharp/ql/test/query-tests/Bad Practices/Naming Conventions/ConfusingMethodNames/Program.cs
2018-08-02 17:53:23 +01:00

15 lines
249 B
C#

class C1
{
int F() => 0; // BAD: Confusing
int f() => 0;
int G() => 0; // GOOD: Same name
int G(int x) => x;
}
class C2
{
int f() => 0; // GOOD
int G() => 0; // GOOD
int G(int x) => x; // GOOD
}