Browse Source

Add test case for #2436

pull/2566/head
Daniel Grunwald 4 years ago
parent
commit
92ee317166
  1. 17
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/Async.cs

17
ICSharpCode.Decompiler.Tests/TestCases/Pretty/Async.cs

@ -340,6 +340,23 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -340,6 +340,23 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
await Task.CompletedTask;
}
}
public async Task<object> Issue2436()
{
try
{
Console.WriteLine();
}
catch (Exception result)
{
return result;
}
finally
{
await Task.CompletedTask;
}
return new object();
}
#endif
public static async Task<int> GetIntegerSumAsync(IEnumerable<int> items)

Loading…
Cancel
Save