linux-packaging-mono/mcs/tests/test-async-80.cs
Xamarin Public Jenkins f1bb32afc3 Imported Upstream version 4.2.1.91
Former-commit-id: 5bd0f48812d39b3636887951adc772b94ef2f5af
2015-11-10 15:04:26 +00:00

21 lines
309 B
C#

using System.Threading.Tasks;
using System;
class X
{
public async Task Test<T, U> (int arg)
{
await Task.Run (async () => {
await Task.Run (async () => {
Console.WriteLine (this);
});
return arg;
}
);
}
public static void Main ()
{
new X().Test<int, long>(1).Wait ();
}
}