mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Merge pull request #621 from calumgrant/cs/invalid-key
C#: Fix [INVALID_KEY] error
This commit is contained in:
@@ -2,10 +2,6 @@
|
||||
|
||||
class C
|
||||
{
|
||||
E M1() { M2(); M2(); return null; }
|
||||
object M1() { M2(); M2(); return null; }
|
||||
void M2() { }
|
||||
}
|
||||
|
||||
class E
|
||||
{
|
||||
}
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
|
||||
class C
|
||||
{
|
||||
D M1() { M3(); return null; }
|
||||
object M1() { M3(); return null; }
|
||||
void M3() { }
|
||||
}
|
||||
|
||||
class D
|
||||
{
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import csharp
|
||||
|
||||
from Method m
|
||||
where strictcount(m.getBody()) > 1
|
||||
select m, "This method has multiple bodies."
|
||||
@@ -1,3 +1 @@
|
||||
| A.cs:3:7:3:7 | C |
|
||||
| A.cs:9:7:9:7 | E |
|
||||
| B.cs:9:7:9:7 | D |
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
| A.cs:5:7:5:8 | M1 |
|
||||
| A.cs:5:12:5:13 | M1 |
|
||||
| A.cs:6:10:6:11 | M2 |
|
||||
|
||||
Reference in New Issue
Block a user