[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / test-async-84.cs
blob03825613f1f61ac9f4ed86652e5b373750dbf0d0
1 using System;
2 using System.Threading.Tasks;
4 struct S
6 public int value;
7 public string str;
10 public class Program
12 async Task<S> Foo ()
14 return new S {
15 value = 1,
16 str = await DoAsync ()
21 static async Task<string> DoAsync ()
23 await Task.Yield ();
24 return "asdafs";
27 static int Main ()
29 var res = new Program ().Foo ().Result;
30 if (res.value != 1)
31 return 1;
33 return 0;