2 using System.Threading.Tasks;
6 public int in_catch, in_finally;
8 async Task ExecuteCore ()
11 await Task.Run (() => {
12 throw new ApplicationException ();
14 } catch (Exception ex) {
23 public static int Main ()
27 t.ExecuteCore ().Wait ();
29 } catch (AggregateException) {
35 if (t.in_finally != 1)