You've already forked linux-packaging-mono
Imported Upstream version 4.2.1.91
Former-commit-id: 5bd0f48812d39b3636887951adc772b94ef2f5af
This commit is contained in:
committed by
Jo Shields
parent
2faab2dafa
commit
f1bb32afc3
21
mcs/tests/test-async-80.cs
Normal file
21
mcs/tests/test-async-80.cs
Normal file
@ -0,0 +1,21 @@
|
||||
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 ();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user