A fix for bug #359611, #359604
* anonymous.cs: Mutate all types of hoisted parameters.
svn path=/trunk/mcs/; revision=106240
+2008-06-19 Marek Safar <marek.safar@gmail.com>
+
+ A fix for bug #359611, #359604
+ * anonymous.cs: Mutate all types of hoisted parameters.
+
2008-06-19 Marek Safar <marek.safar@gmail.com>
* typemanager.cs, lambda.cs, parameter.cs, ecore.cs, linq.cs, class.cs
public override bool Define ()
{
if (Storey != null && Storey.IsGeneric) {
+
if (!Parameters.Empty) {
Type [] ptypes = Parameters.Types;
- for (int i = 0; i < ptypes.Length; ++i) {
- if (TypeManager.IsGenericParameter (ptypes [i]))
- ptypes [i] = Storey.MutateType (ptypes [i]);
- }
+ for (int i = 0; i < ptypes.Length; ++i)
+ ptypes [i] = Storey.MutateType (ptypes [i]);
}
member_type = Storey.MutateType (ReturnType);