Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git] / mcs / tests / test-async-18.cs
index 898d9ed4dedaac879274ce2c3716cd348cbb55a6..1dcfa4c546b2b5f560cedf422a5c45bdaa6d0103 100644 (file)
@@ -1,4 +1,3 @@
-// Compiler options: -langversion:future
 using System;
 using System.Threading.Tasks;
 using System.Threading;
@@ -11,7 +10,7 @@ class Tester
                {
                        int a = 8;
                        Func<int> f = () => a;
-                       res = await Task.Factory.StartNew (f);
+                       res = await Task.Factory.StartNew (f).ConfigureAwait (false);
                        res += f ();
                }
                
@@ -24,7 +23,7 @@ class Tester
                {
                        int a = 8;
                        Func<int> f = () => a + res;
-                       res = await Task.Factory.StartNew (f);
+                       res = await Task.Factory.StartNew (f).ConfigureAwait (false);
                        res += f ();
                }
                
@@ -37,7 +36,7 @@ class Tester
                {
                        int a = 8;
                        Func<int> f = () => a;
-                       res = await Task.Factory.StartNew (f);
+                       res = await Task.Factory.StartNew (f).ConfigureAwait (false);
                        res += f ();
                }