diff --git a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
index 29015d86ae..f112879f55 100644
--- a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
+++ b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
@@ -105,6 +105,7 @@
+
@@ -209,6 +210,8 @@
+
+
diff --git a/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs b/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs
index f0d8afb67a..ea17c49f82 100644
--- a/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs
+++ b/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs
@@ -51,6 +51,12 @@ public void AllFilesHaveTests()
}
}
+ [Test]
+ public async Task AnonymousMethodEdgeCases()
+ {
+ await Run();
+ }
+
[Test, Ignore("Need to decide how to represent virtual methods without 'newslot' flag")]
public async Task Issue379()
{
@@ -353,6 +359,12 @@ public async Task GuessAccessors()
await Run();
}
+ [Test]
+ public async Task InaccessibleParameterTypes()
+ {
+ await Run();
+ }
+
[Test]
public async Task EmptyBodies()
{
diff --git a/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/AnonymousMethodEdgeCases.cs b/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/AnonymousMethodEdgeCases.cs
new file mode 100644
index 0000000000..84d19f5f1d
--- /dev/null
+++ b/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/AnonymousMethodEdgeCases.cs
@@ -0,0 +1,22 @@
+using System;
+
+namespace ICSharpCode.Decompiler.Tests.TestCases.ILPretty
+{
+ public class AnonymousMethodEdgeCases
+ {
+ public Func AssignmentIsTheLambdaBody()
+ {
+ return (int x) => {
+ int num;
+ return num = x;
+ };
+ }
+
+ public Action