linux-packaging-mono/mcs/tests/test-async-88.cs

29 lines
335 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
public class Test
{
static async Task<string> AsyncWithDeepTry ()
{
try {
await Task.Yield ();
try {
await Task.Yield ();
} catch {
}
} catch {
await Task.Yield ();
} finally {
}
return null;
}
static void Main ()
{
AsyncWithDeepTry ().Wait ();
}
}