Another dist build fix for rx integration, move *.cs file to safe-ish path.
[mono-project.git] / mcs / tests / test-async-39.cs
blobd02772f0d702e149ec31f826ef1c03d93bc451d4
1 using System;
2 using System.Threading.Tasks;
4 public class CompilerBug
6 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";