Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-async-64.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e16e12702922f5cd76f927a0cbb0319618932738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Threading.Tasks;

class X
{
	public static void Main ()
	{
		Invoke (async delegate {
			await Task.Yield ();
			return 1;
		});
	}

	static T Invoke<T> (Func<Task<T>> m)
	{
		return default (T);
	}
}