-// Compiler options: -langversion:future
-
using System;
using System.Threading.Tasks;
using System.Threading;
return 1;
}
+
+ async Task<int> TestException_7 ()
+ {
+ try {
+ await Task.Factory.StartNew (() => { throw new ArgumentException (); }).ConfigureAwait (false);
+ } catch (ArgumentException e) {
+ if (e.StackTrace.Contains (".MoveNext"))
+ throw new ApplicationException ();
+ }
+
+ return 1;
+ }
static bool RunTest (MethodInfo test)
{