Place break inside if block
[mono.git] / mcs / tests / test-async-06.cs
index 8d50e08acda559e987d611b2032e8ceda2c4b5db..a6c3ac9175a975360b6ef661624d3c2f9d7a6f2e 100644 (file)
@@ -1,5 +1,3 @@
-// Compiler options: -langversion:future
-
 using System;
 using System.Threading;
 using System.Threading.Tasks;
@@ -15,7 +13,7 @@ class Program
                        await Task.Factory.StartNew (() => {
                                if (!mre_l.WaitOne (3000))
                                        throw new ApplicationException ("1");
-                       });
+                       }).ConfigureAwait (false);
 
                        if (mre_l.WaitOne ())
                                mre.Set ();
@@ -33,7 +31,7 @@ class Program
                        await Task.Factory.StartNew (() => {
                                if (!mre_l.WaitOne (3000))
                                        throw new ApplicationException ("2");
-                       });
+                       }).ConfigureAwait (false);
 
                        if (mre_l.WaitOne ())
                                mre.Set ();
@@ -52,7 +50,7 @@ class Program
                                        throw new ApplicationException ("3");
 
                                return l;
-                       });
+                       }).ConfigureAwait (false);
 
                        return t;
                };
@@ -73,7 +71,7 @@ class Program
                                        throw new ApplicationException ("4");
 
                                return l;
-                       });
+                       }).ConfigureAwait (false);
 
                        return t;
                };