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

cs4010.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d352d0492b53da8e1fad7e101af692771f3795a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS4010: Cannot convert async lambda expression to delegate type `System.Func<bool>'
// Line: 16

using System;
using System.Threading.Tasks;

class C
{
	static Task<int> GetInt ()
	{
		return null;
	}
	
	public static void Main ()
	{
		Func<bool> a = async () => { await GetInt (); };
	}
}