|
|
|
|
@ -40,11 +40,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
@@ -40,11 +40,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
|
|
|
|
|
|
|
|
|
|
private void SimpleArray() |
|
|
|
|
{ |
|
|
|
|
#if ROSLYN && OPT
|
|
|
|
|
var obj = new[] { |
|
|
|
|
#else
|
|
|
|
|
var array = new[] { |
|
|
|
|
#endif
|
|
|
|
|
new { |
|
|
|
|
X = 5, |
|
|
|
|
Y = 2, |
|
|
|
|
@ -57,13 +53,8 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
@@ -57,13 +53,8 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#if ROSLYN && OPT
|
|
|
|
|
Console.WriteLine(obj[0].X); |
|
|
|
|
Console.WriteLine(obj[1].X); |
|
|
|
|
#else
|
|
|
|
|
Console.WriteLine(array[0].X); |
|
|
|
|
Console.WriteLine(array[1].X); |
|
|
|
|
#endif
|
|
|
|
|
} |
|
|
|
|
#if !MCS
|
|
|
|
|
private void JaggedArray() |
|
|
|
|
@ -80,19 +71,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
@@ -80,19 +71,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
|
|
|
|
|
Z = -6 |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
#if ROSLYN && OPT
|
|
|
|
|
var obj = new[] { array, array }; |
|
|
|
|
|
|
|
|
|
Console.WriteLine(array[0].X); |
|
|
|
|
Console.WriteLine(array[1].X); |
|
|
|
|
Console.WriteLine(obj.Length); |
|
|
|
|
#else
|
|
|
|
|
var array2 = new[] { array, array }; |
|
|
|
|
|
|
|
|
|
Console.WriteLine(array[0].X); |
|
|
|
|
Console.WriteLine(array[1].X); |
|
|
|
|
Console.WriteLine(array2.Length); |
|
|
|
|
#endif
|
|
|
|
|
} |
|
|
|
|
#endif
|
|
|
|
|
#if CS70
|
|
|
|
|
|