Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs8031.cs
blobdbb83bc1185e380c9977b15309d1b7442030ffc2
1 // CS8031: Async lambda expression or anonymous method converted to a `Task' cannot return a value. Consider returning `Task<T>'
2 // Line: 12
4 using System;
5 using System.Threading.Tasks;
7 class Test
9 public static void Main()
11 Func<Task> t = async delegate {
12 return null;
15 return;