Merge pull request #5636 from BrzVlad/fix-xmm-scan
[mono.git] / mcs / tests / test-async-05.cs
index daf58596b25047bfcf4573889641ac26ec84dba2..df57e8a3a5eb40026cd24ba2acf5bd6f837826ca 100644 (file)
@@ -1,19 +1,19 @@
-// Compiler options: -langversion:future
-
-using System;
-using System.Linq.Expressions;
 using System.Threading.Tasks;
 
 class C
 {
-       static Task Method ()
+       public async Task SynchronousCall (int arg)
+       {
+               AnotherTask (arg);
+       }
+       
+       Task AnotherTask (int arg)
        {
-               return null;
+               return Task.FromResult (arg);
        }
        
        public static void Main ()
        {
-               Expression<Action<int>> a = async l => Method ();
-               a.Compile () (1);
+               new C ().SynchronousCall (1);
        }
-}
+}
\ No newline at end of file