Author: martin
Date: 2006-11-23 13:32:10 -0500 (Thu, 23 Nov 2006)
New Revision: 68411

Modified:
   branches/martin/anonymous-methods2/mcs/anonymous.cs
Log:


Modified: branches/martin/anonymous-methods2/mcs/anonymous.cs
===================================================================
--- branches/martin/anonymous-methods2/mcs/anonymous.cs 2006-11-23 18:22:27 UTC 
(rev 68410)
+++ branches/martin/anonymous-methods2/mcs/anonymous.cs 2006-11-23 18:32:10 UTC 
(rev 68411)
@@ -497,6 +497,10 @@
                        {
                                Type type = ChildScope.IsGeneric ?
                                        ChildScope.CurrentType : 
ChildScope.TypeBuilder;
+                               Report.Debug (128, "CAPTURED SCOPE DEFINE 
MEMBERS", this, Scope,
+                                             ChildScope, Name, type);
+                               if (type == null)
+                                       throw new InternalErrorException ();
                                field = Scope.CaptureVariable (
                                        Scope.MakeFieldName (Name), 
Scope.InflateType (type));
                                return true;
@@ -603,7 +607,7 @@
                                        FieldExpr fe = (FieldExpr) 
Expression.MemberLookup (
                                                ec.ContainerType, type, 
scope.Field.Name, loc);
                                        Report.Debug (64, "RESOLVE SCOPE 
INITIALIZER #3", this, Scope,
-                                                     Scope, ec, 
ec.ContainerType, type,
+                                                     scope, ec, 
ec.ContainerType, type,
                                                      scope.Field, 
scope.Field.Name, loc, fe);
                                        if (fe == null)
                                                throw new 
InternalErrorException ();
@@ -818,6 +822,9 @@
                                        throw new InternalErrorException ();
                                if (!si.ResolveType ())
                                        throw new InternalErrorException ();
+                       }
+
+                       foreach (ScopeInfo si in scopes) {
                                if (!si.ResolveMembers ())
                                        throw new InternalErrorException ();
                                if (!si.DefineMembers ())

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to