Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs4029.cs
1 // CS4029: Cannot return an expression of type `void'
2 // Line: 15
3
4 using System;
5 using System.Threading.Tasks;
6
7 class C
8 {
9         static void Foo<T> (Func<Task<T>> f)
10         {
11         }
12
13         static void Main ()
14         {
15                 Foo (async () => {
16                         return await Task.Factory.StartNew (() => { });
17                 });
18         }
19 }