Go, baby, go :-)
authorMartin Baulig <martin@novell.com>
Tue, 21 Nov 2006 18:47:46 +0000 (18:47 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 21 Nov 2006 18:47:46 +0000 (18:47 -0000)
svn path=/branches/martin/anonymous-methods2/mcs/; revision=68270

mcs/mcs/anonymous.cs

index bc2836568b9c8f730ac5e14672ab4492752e03e1..f3fbe8fa067f4e86f2556f803601155a88c10a4a 100644 (file)
@@ -323,6 +323,7 @@ namespace Mono.CSharp {
 
                                ScopeInfo host = toplevel.AnonymousContainer.Scope;
                                Variable the_scope = (Variable) host.scopes [scope];
+                               Report.Debug (128, "EMIT SCOPE INSTANCE #2", host, scope, the_scope);
                                if (the_scope != null)
                                        the_scope.Emit (ec);
 
@@ -1548,7 +1549,7 @@ namespace Mono.CSharp {
                        scope.CheckMembersDefined ();
 
                        ArrayList scopes = new ArrayList ();
-                       if (b != container) {
+                       //if (b != container) {
                                for (b = b.Parent; b != null; b = b.Parent) {
                                        if (b.ScopeInfo != null)
                                                scopes.Add (b.ScopeInfo);
@@ -1557,7 +1558,7 @@ namespace Mono.CSharp {
                                                break;
 #endif
                                }
-                       }
+                               //}
 
                        foreach (ScopeInfo si in scopes) {
                                if (!si.Define ())