Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-async-39.cs
blob40138879cae15888747bdce259456e713def706a
1 using System;
2 using System.Threading.Tasks;
4 public class CompilerBug
6 public static void Main ()
8 var res = Foo ().Result;
9 Console.WriteLine (res);
10 return;
13 static async Task<string> Foo ()
15 Action fnAction;
17 fnAction = () => { };
19 await Task.Delay (10);
21 fnAction ();
23 return "val";