diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DelegateConstruction.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DelegateConstruction.cs index 86ec9d1cc..bb522de53 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DelegateConstruction.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DelegateConstruction.cs @@ -187,7 +187,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty Noop("M3", this.M3); Noop("M3", M3); +#if CS80 + static void M3() +#else void M3() +#endif { } diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/LocalFunctions.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/LocalFunctions.cs index fc3cbfe2d..28cbc558a 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/LocalFunctions.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/LocalFunctions.cs @@ -246,6 +246,62 @@ namespace LocalFunctions Nop>((List)(object)t3); } } + +#if false + public void GenericArgsWithAnonymousType() + { + Method(); +#if CS80 + static void Method() +#else + void Method() +#endif + { + int i = 0; + var obj2 = new { + A = 1 + }; + Method2(obj2); + Method3(obj2); + void Method2(T3 obj1) + { + //keep nested + i = 0; + } +#if CS80 + static void Method3(T3 obj1) +#else + void Method3(T3 obj1) +#endif + { + } + } + } +#if CS80 + public void NameConflict() + { + int i = 0; + Method(); + void Method() + { + Method(); + void Method() + { + Method(); + i = 0; + void Method() + { + i = 0; + Method(); + static void Method() + { + } + } + } + } + } +#endif +#endif } private int field;