summaryrefslogtreecommitdiff
path: root/mcs/tests/test-async-38.cs
blob: cdd22347d21bc8fc6f1a6d2400325f2428dea4f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Threading.Tasks;

class C
{
	void Test ()
	{
		Func<Task<int>> f = async () => {
			await GetResultsAsync (null);
			return 2;
		};

		f ();
	}

	Task<int> GetResultsAsync (object arg)
	{
		return null;
	}

	public static void Main ()
	{
		new C ().Test ();
	}
}