mirror of
https://github.com/github/codeql.git
synced 2026-04-11 18:14:01 +02:00
C#: Add test that shows unintended flow summary generation
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
unexpectedModel
|
||||
| Unexpected contentbased-summary found: Models;HigherOrderParameters;false;Apply;(System.Func<System.Object,System.Object>,System.Object);;Argument[1];ReturnValue;value;dfc-generated |
|
||||
expectedModel
|
||||
|
||||
@@ -536,6 +536,12 @@ public class HigherOrderParameters
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user