diff --git a/csharp/ql/test/library-tests/dispatch/CallContext.expected b/csharp/ql/test/library-tests/dispatch/CallContext.expected index 049464b8ca94..b5f75b4f265c 100644 --- a/csharp/ql/test/library-tests/dispatch/CallContext.expected +++ b/csharp/ql/test/library-tests/dispatch/CallContext.expected @@ -26,5 +26,4 @@ mayBenefitFromCallContext | ViableCallable.cs:576:18:576:22 | call to operator / | | ViableCallable.cs:579:26:579:30 | call to operator checked / | | ViableCallable.cs:585:9:585:15 | call to method M12 | -| ViableCallable.cs:612:9:612:13 | call to method M | | ViableCallable.cs:618:9:618:13 | call to method M | diff --git a/csharp/ql/test/library-tests/dispatch/CallGraph.expected b/csharp/ql/test/library-tests/dispatch/CallGraph.expected index 192226d37b8f..f1fc555f5203 100644 --- a/csharp/ql/test/library-tests/dispatch/CallGraph.expected +++ b/csharp/ql/test/library-tests/dispatch/CallGraph.expected @@ -260,6 +260,5 @@ | ViableCallable.cs:555:10:555:15 | Run`1 | ViableCallable.cs:552:17:552:19 | M11 | | ViableCallable.cs:555:10:555:15 | Run`1 | ViableCallable.cs:553:17:553:19 | M12 | | ViableCallable.cs:609:17:609:23 | Run1`1 | ViableCallable.cs:601:21:601:21 | M | -| ViableCallable.cs:609:17:609:23 | Run1`1 | ViableCallable.cs:606:21:606:21 | M | | ViableCallable.cs:615:17:615:23 | Run2`1 | ViableCallable.cs:601:21:601:21 | M | | ViableCallable.cs:615:17:615:23 | Run2`1 | ViableCallable.cs:606:21:606:21 | M | diff --git a/csharp/ql/test/library-tests/dispatch/GetADynamicTarget.expected b/csharp/ql/test/library-tests/dispatch/GetADynamicTarget.expected index e8609224d2db..c31cd923d9d6 100644 --- a/csharp/ql/test/library-tests/dispatch/GetADynamicTarget.expected +++ b/csharp/ql/test/library-tests/dispatch/GetADynamicTarget.expected @@ -506,6 +506,5 @@ | ViableCallable.cs:585:9:585:15 | call to method M12 | I3.M12() | | ViableCallable.cs:588:9:588:15 | call to method M13 | I3.M13() | | ViableCallable.cs:612:9:612:13 | call to method M | C21+A1.M() | -| ViableCallable.cs:612:9:612:13 | call to method M | C21+A2.M() | | ViableCallable.cs:618:9:618:13 | call to method M | C21+A1.M() | | ViableCallable.cs:618:9:618:13 | call to method M | C21+A2.M() | diff --git a/csharp/ql/test/library-tests/dispatch/ViableCallable.cs b/csharp/ql/test/library-tests/dispatch/ViableCallable.cs index b28257010b3e..49210d992afc 100644 --- a/csharp/ql/test/library-tests/dispatch/ViableCallable.cs +++ b/csharp/ql/test/library-tests/dispatch/ViableCallable.cs @@ -608,7 +608,7 @@ public void M() { } public void Run1(T t) where T : I { - // Viable callable: A1.M() [also reports A2.M(); false positive] + // Viable callable: A1.M() t.M(); } diff --git a/csharp/ql/test/library-tests/unification/Unification.cs b/csharp/ql/test/library-tests/unification/Unification.cs index 50aab4943569..65d06e9c1397 100644 --- a/csharp/ql/test/library-tests/unification/Unification.cs +++ b/csharp/ql/test/library-tests/unification/Unification.cs @@ -54,5 +54,5 @@ struct S3 : I2 { } ref struct RS : I2 { } class C7 : I2 { } -class NormalConstraint where T : I2 { } // False positive: Allows T to be `RS`. +class NormalConstraint where T : I2 { } class NegativeConstraint where T : I2, allows ref struct { } diff --git a/csharp/ql/test/library-tests/unification/Unification.expected b/csharp/ql/test/library-tests/unification/Unification.expected index fac47754e195..9849938a4a68 100644 --- a/csharp/ql/test/library-tests/unification/Unification.expected +++ b/csharp/ql/test/library-tests/unification/Unification.expected @@ -8,7 +8,6 @@ constrainedTypeParameterSubsumes | Unification.cs:8:10:8:11 | T2 | Unification.cs:31:12:31:23 | (string, T9) | | Unification.cs:8:10:8:11 | T2 | Unification.cs:32:12:32:19 | (T8, T9) | | Unification.cs:8:10:8:11 | T2 | Unification.cs:53:8:53:9 | S3 | -| Unification.cs:8:10:8:11 | T2 | Unification.cs:54:12:54:13 | RS | | Unification.cs:9:10:9:11 | T3 | Unification.cs:1:11:1:12 | I1 | | Unification.cs:9:10:9:11 | T3 | Unification.cs:6:7:6:8 | C0 | | Unification.cs:9:10:9:11 | T3 | Unification.cs:7:7:7:12 | C1 | @@ -103,12 +102,10 @@ constrainedTypeParameterSubsumes | Unification.cs:12:25:12:27 | T6d | Unification.cs:31:12:31:23 | (string, T9) | | Unification.cs:12:25:12:27 | T6d | Unification.cs:32:12:32:19 | (T8, T9) | | Unification.cs:12:25:12:27 | T6d | Unification.cs:53:8:53:9 | S3 | -| Unification.cs:12:25:12:27 | T6d | Unification.cs:54:12:54:13 | RS | | Unification.cs:24:12:24:13 | Tm | Unification.cs:8:7:8:12 | C2 | | Unification.cs:24:12:24:13 | Tm | Unification.cs:24:12:24:13 | Tm | | Unification.cs:57:24:57:24 | T | Unification.cs:52:11:52:12 | I2 | | Unification.cs:57:24:57:24 | T | Unification.cs:53:8:53:9 | S3 | -| Unification.cs:57:24:57:24 | T | Unification.cs:54:12:54:13 | RS | | Unification.cs:57:24:57:24 | T | Unification.cs:55:7:55:8 | C7 | | Unification.cs:57:24:57:24 | T | Unification.cs:57:24:57:24 | T | | Unification.cs:57:24:57:24 | T | Unification.cs:58:26:58:26 | T | @@ -129,7 +126,6 @@ constrainedTypeParameterUnifiable | Unification.cs:8:10:8:11 | T2 | Unification.cs:31:12:31:23 | (string, T9) | | Unification.cs:8:10:8:11 | T2 | Unification.cs:32:12:32:19 | (T8, T9) | | Unification.cs:8:10:8:11 | T2 | Unification.cs:53:8:53:9 | S3 | -| Unification.cs:8:10:8:11 | T2 | Unification.cs:54:12:54:13 | RS | | Unification.cs:9:10:9:11 | T3 | Unification.cs:1:11:1:12 | I1 | | Unification.cs:9:10:9:11 | T3 | Unification.cs:6:7:6:8 | C0 | | Unification.cs:9:10:9:11 | T3 | Unification.cs:7:7:7:12 | C1 | @@ -232,13 +228,11 @@ constrainedTypeParameterUnifiable | Unification.cs:12:25:12:27 | T6d | Unification.cs:31:12:31:23 | (string, T9) | | Unification.cs:12:25:12:27 | T6d | Unification.cs:32:12:32:19 | (T8, T9) | | Unification.cs:12:25:12:27 | T6d | Unification.cs:53:8:53:9 | S3 | -| Unification.cs:12:25:12:27 | T6d | Unification.cs:54:12:54:13 | RS | | Unification.cs:24:12:24:13 | Tm | Unification.cs:8:7:8:12 | C2 | | Unification.cs:24:12:24:13 | Tm | Unification.cs:8:7:8:12 | C2 | | Unification.cs:24:12:24:13 | Tm | Unification.cs:24:12:24:13 | Tm | | Unification.cs:57:24:57:24 | T | Unification.cs:52:11:52:12 | I2 | | Unification.cs:57:24:57:24 | T | Unification.cs:53:8:53:9 | S3 | -| Unification.cs:57:24:57:24 | T | Unification.cs:54:12:54:13 | RS | | Unification.cs:57:24:57:24 | T | Unification.cs:55:7:55:8 | C7 | | Unification.cs:57:24:57:24 | T | Unification.cs:57:24:57:24 | T | | Unification.cs:57:24:57:24 | T | Unification.cs:58:26:58:26 | T |