Remove useless ip += from MINT_JMP, it is assigned later. (#19217)
[mono-project.git] / mcs / errors / cs4029.cs
blob14fce4f458bb2cd4a69c03611a124a098eca1e7a
1 // CS4029: Cannot return an expression of type `void'
2 // Line: 15
4 using System;
5 using System.Threading.Tasks;
7 class C
9 static void Foo<T> (Func<Task<T>> f)
13 static void Main ()
15 Foo (async () => {
16 return await Task.Factory.StartNew (() => { });
17 });