diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExceptionHandling.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExceptionHandling.cs index 436d4ca1d..090ccc71c 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExceptionHandling.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExceptionHandling.cs @@ -501,5 +501,21 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty } } #endif + + public static void ContinueInCatchInForeach(int[] arr) + { + foreach (int value in arr) + { + try + { + Console.WriteLine(value); + } + catch (Exception) + { + continue; + } + Console.WriteLine("after"); + } + } } }