mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user