2 using System
.Threading
;
4 // Regression test for bug #59299
8 delegate void M(ref object x
, ref object y
);
10 public static void Foo(ref object x
, ref object y
)
16 public static int Main()
20 object x1
= 10, x2
= 10;
22 ar
= m
.BeginInvoke(ref x1
, ref x2
, null, null);
24 m
.EndInvoke(ref x1
, ref x2
, ar
);
26 if ((int)x1
!= 20 || (int)x2
!= 30)