Browse Source

Add pretty test for generic iterator methods

All iterator producers in the fixture used concrete element types;
a generic method pins the reconstruction of the generic state
machine type.

Assisted-by: Claude:claude-fable-5:Claude Code
pull/3857/head
Siegfried Pammer 3 days ago committed by Siegfried Pammer
parent
commit
c8965793a6
  1. 8
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs

8
ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs

@ -441,5 +441,13 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -441,5 +441,13 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
yield return i;
}
}
internal static IEnumerable<T> GenericRepeat<T>(T value, int count)
{
for (int i = 0; i < count; i++)
{
yield return value;
}
}
}
}

Loading…
Cancel
Save