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
+}
<size>56</size>
</method>
</type>
+ <type name="Test">
+ <method name="Void ArrayMutate[T](T[])">
+ <size>27</size>
+ </method>
+ </type>
+ <type name="Test+<ArrayMutate>c__AnonStorey9`1[T]">
+ <method name="Void .ctor()">
+ <size>7</size>
+ </method>
+ <method name="Void <>m__9(Int32)">
+ <size>36</size>
+ </method>
+ </type>
</test>
<test name="gtest-anon-25.cs">
<type name="HS`1[T]">