C#: Add test that shows unintended flow summary generation

This commit is contained in:
Tom Hvitved
2026-03-20 11:16:43 +01:00
parent 7d184d0c7f
commit eb64fcd208
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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