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

cs8031.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dbb83bc1185e380c9977b15309d1b7442030ffc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS8031: Async lambda expression or anonymous method converted to a `Task' cannot return a value. Consider returning `Task<T>'
// Line: 12

using System;
using System.Threading.Tasks;

class Test
{
	public static void Main()
	{
		Func<Task> t = async delegate {
			return null;
		};

		return;
	}
}