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;
}
}
|