[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / test-async-61.cs
blob22fe04886621b9a1d32b0718a5f0f12517fce804
1 using System.Threading.Tasks;
2 using System;
4 class X
6 public static void Main ()
8 new X ().Foo ().Wait ();
11 async Task Foo ()
13 await Task.Run (async () => {
14 for (var count = 1; count < 5; count++) {
15 Invoke (() => {
16 Console.WriteLine ("{0}", count);
17 });
19 });
22 void Invoke (Action a)
24 a ();