diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs index 29824ad1b..393fa9374 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs @@ -18,6 +18,9 @@ using System; using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Threading; namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness { @@ -662,6 +665,22 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness }); } + public static void Bug270_NestedInitialisers() + { + NumberFormatInfo[] numberFormats = null; + + Thread t = new Thread(Bug270_NestedInitialisers) { + Priority = ThreadPriority.BelowNormal, + CurrentCulture = new CultureInfo(0) { + DateTimeFormat = new DateTimeFormatInfo { + ShortDatePattern = "ddmmyy" + }, + NumberFormat = (from format in numberFormats where format.CurrencySymbol == "$" select format).First() + } + }; + + } + public int[,] MultidimensionalInit() { return new int[,]