From c8965793a6ce0ef152cdc1d35514fd89fabb71a1 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 4 Jul 2026 13:11:32 +0200 Subject: [PATCH] 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 --- .../TestCases/Pretty/YieldReturn.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs index f8e534a4a..7f5b7d8f3 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs @@ -441,5 +441,13 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty yield return i; } } + + internal static IEnumerable GenericRepeat(T value, int count) + { + for (int i = 0; i < count; i++) + { + yield return value; + } + } } }