2008-06-19 Marek Safar <marek.safar@gmail.com>
authorMarek Safar <marek.safar@gmail.com>
Thu, 19 Jun 2008 17:35:11 +0000 (17:35 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 19 Jun 2008 17:35:11 +0000 (17:35 -0000)
A fix for bug #359611, #359604
* anonymous.cs: Mutate all types of hoisted parameters.

svn path=/trunk/mcs/; revision=106240

mcs/mcs/ChangeLog
mcs/mcs/anonymous.cs

index 7577c7d3be6c3662d6527fea827fb60d4c825d31..884fef04c9b2d885333e82a84493b529511acf1f 100644 (file)
@@ -1,3 +1,8 @@
+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
index 039969833d2fea640d20452f05f0521277c17deb..fbcc410303e0dca912972d6f6b559b898f77674a 100644 (file)
@@ -1048,12 +1048,11 @@ namespace Mono.CSharp {
                        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);