Browse Source

Fix #270 - Object initializer not detected when it contains lambdas;

Fixed by newdecompiler engine, adding unit test.
pull/850/head
Siegfried Pammer 8 years ago
parent
commit
d4d7e3ddf5
  1. 19
      ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs

19
ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs

@ -18,6 +18,9 @@ @@ -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 @@ -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[,]

Loading…
Cancel
Save