|
|
|
@ -76,6 +76,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
@@ -76,6 +76,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
|
|
|
|
|
get; |
|
|
|
|
set; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public InitializerTests.Data this[int i] |
|
|
|
|
{ |
|
|
|
|
get { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
set { } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private struct StructData |
|
|
|
@ -515,10 +523,35 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
@@ -515,10 +523,35 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
|
|
|
|
|
{ |
|
|
|
|
MoreData = |
|
|
|
|
{ |
|
|
|
|
a = InitializerTests.MyEnum.a |
|
|
|
|
a = InitializerTests.MyEnum.a, |
|
|
|
|
MoreData = { |
|
|
|
|
a = InitializerTests.MyEnum.b |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if false
|
|
|
|
|
static int GetInt() |
|
|
|
|
{ |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void MixedObjectAndDictInitializer() |
|
|
|
|
{ |
|
|
|
|
InitializerTests.X(InitializerTests.Y(), new InitializerTests.Data { |
|
|
|
|
MoreData = |
|
|
|
|
{ |
|
|
|
|
a = InitializerTests.MyEnum.a, |
|
|
|
|
[GetInt()] = { |
|
|
|
|
a = InitializerTests.MyEnum.b, |
|
|
|
|
FieldList = { MyEnum2.c }, |
|
|
|
|
[2] = null |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
public static void ObjectInitializerWithInitializationOfDeeplyNestedObjects() |
|
|
|
|
{ |
|
|
|
|