Skip to content

Commit bd84fb3

Browse files
authored
Add regression for catch type mention extraction
1 parent 4c9fa4d commit bd84fb3

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

csharp/ql/test/library-tests/regressions/Program.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ class C : I<int>, I<string, string>, I<string>
5050
}
5151
}
5252

53-
class CatchTypeMentions
54-
{
55-
void F()
56-
{
57-
try
58-
{
59-
}
60-
catch (Exception)
61-
{
62-
}
63-
}
64-
}
65-
6653
class NameOfMethodGroups
6754
{
6855
int MethodGroup() => 0;
@@ -207,3 +194,16 @@ class C3<T> : C2<C4<T>> { }
207194
class C4<T> : C2<C3<T>> { }
208195

209196
class C5 : C4<C5> { }
197+
198+
class CatchTypeMentions
199+
{
200+
void F()
201+
{
202+
try
203+
{
204+
}
205+
catch (Exception)
206+
{
207+
}
208+
}
209+
}

csharp/ql/test/library-tests/regressions/TypeMentions.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,5 @@
100100
| Program.cs:194:21:194:21 | T |
101101
| Program.cs:196:12:196:17 | C4<C5> |
102102
| Program.cs:196:15:196:16 | C5 |
103+
| Program.cs:200:5:200:8 | Void |
104+
| Program.cs:205:16:205:24 | Exception |

0 commit comments

Comments
 (0)