mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
C#: Add test that shows unintended flow summary generation
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
unexpectedModel
|
unexpectedModel
|
||||||
|
| Unexpected contentbased-summary found: Models;HigherOrderParameters;false;Apply;(System.Func<System.Object,System.Object>,System.Object);;Argument[1];ReturnValue;value;dfc-generated |
|
||||||
expectedModel
|
expectedModel
|
||||||
|
|||||||
@@ -536,6 +536,12 @@ public class HigherOrderParameters
|
|||||||
{
|
{
|
||||||
a(o);
|
a(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void CallApply()
|
||||||
|
{
|
||||||
|
// Test that this call to `Apply` does not interfere with the flow summaries generated for `Apply`
|
||||||
|
Apply(x => x, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class HigherOrderExtensionMethods
|
public static class HigherOrderExtensionMethods
|
||||||
|
|||||||
Reference in New Issue
Block a user