Changed UploadStringAsync to handle UploadString encapsulated exceptions.
[mono.git] / mcs / errors / cs1997-2.cs
1 // CS1997: `System.Func<System.Threading.Tasks.Task>': A return keyword must not be followed by an expression when async delegate returns `Task'. Consider using `Task<T>' return type
2 // Line: 12
3
4 using System;
5 using System.Threading.Tasks;
6
7 class Test
8 {
9         public static void Main()
10         {
11                 Func<Task> t = async delegate {
12                         return null;
13                 };
14
15                 return;
16         }
17 }