mirror of
https://github.com/github/codeql.git
synced 2026-06-22 13:21:10 +02:00
Add regression for catch type mention extraction
This commit is contained in:
committed by
GitHub
parent
4c9fa4dddc
commit
bd84fb31e1
@@ -50,19 +50,6 @@ class TypeMentions
|
||||
}
|
||||
}
|
||||
|
||||
class CatchTypeMentions
|
||||
{
|
||||
void F()
|
||||
{
|
||||
try
|
||||
{
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class NameOfMethodGroups
|
||||
{
|
||||
int MethodGroup() => 0;
|
||||
@@ -207,3 +194,16 @@ class C3<T> : C2<C4<T>> { }
|
||||
class C4<T> : C2<C3<T>> { }
|
||||
|
||||
class C5 : C4<C5> { }
|
||||
|
||||
class CatchTypeMentions
|
||||
{
|
||||
void F()
|
||||
{
|
||||
try
|
||||
{
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,3 +100,5 @@
|
||||
| Program.cs:194:21:194:21 | T |
|
||||
| Program.cs:196:12:196:17 | C4<C5> |
|
||||
| Program.cs:196:15:196:16 | C5 |
|
||||
| Program.cs:200:5:200:8 | Void |
|
||||
| Program.cs:205:16:205:24 | Exception |
|
||||
|
||||
Reference in New Issue
Block a user