A fix for bug #612146
* generic.cs: Don't use fixed array for inflated type parameter
interface constraints.
svn path=/trunk/mcs/; revision=158944
+2010-06-15 Marek Safar <marek.safar@gmail.com>
+
+ A fix for bug #612146
+ * generic.cs: Don't use fixed array for inflated type parameter
+ interface constraints.
+
2010-06-15 Marek Safar <marek.safar@gmail.com>
* typespec.cs: ElementTypeSpec has to use its own ITypeDefinition.
var tps = (TypeParameterSpec) MemberwiseClone ();
tps.BaseType = inflator.Inflate (BaseType);
if (ifaces != null) {
- tps.ifaces = new TypeSpec[ifaces.Count];
+ tps.ifaces = new List<TypeSpec> (ifaces.Count);
for (int i = 0; i < ifaces.Count; ++i)
- tps.ifaces[i] = inflator.Inflate (ifaces[i]);
+ tps.ifaces.Add (inflator.Inflate (ifaces[i]));
}
if (targs != null) {
tps.targs = new TypeSpec[targs.Length];