2008-10-14 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / statement.cs
index 9c023d287d4aaedd46e7edf65fe9f4a791f0d546..f3480c06ed1ee4676fcb784fa98a9685e2f05c1f 100644 (file)
@@ -2346,6 +2346,11 @@ namespace Mono.CSharp {
                {
                        MutateVariables (storey);
 
+                       if (scope_initializers != null) {
+                               foreach (Statement s in scope_initializers)
+                                       s.MutateHoistedGenericType (storey);
+                       }
+
                        foreach (Statement s in statements)
                                s.MutateHoistedGenericType (storey);
                }