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

cs1997.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bcceb7e1576efd6a711d78b8916021d06f24800f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS1997: `C.Test()': A return keyword must not be followed by an expression when async method returns `Task'. Consider using `Task<T>' return type
// Line: 12

using System;
using System.Threading.Tasks;

class C
{
	public async Task Test ()
	{
		await Call ();
		return null;
	}
	
	static Task Call ()
	{
		return null;
	}
}