using System;
using System.Collections.Generic;
+// Generics mutate tests
+
class Disposable<T> : IDisposable
{
public void Dispose ()
};
}
+ public void ArrayMutate<T> (T[] array)
+ {
+ int r = 4;
+ Action<int> anonMeth = delegate (int slc) {
+ long[] idx = new long[] { 0, 0 };
+ for (int i = 0; i < r; i++) {
+ idx [0] = i;
+ }
+ };
+ }
+
public static int Main ()
{
if (For (new List<int> { 5, 10 })() [1] != 10)
Console.WriteLine ("OK");
return 0;
}
-}
\ No newline at end of file
+}