2005-08-22 Ben Maurer <bmaurer@ximian.com>
authorBen Maurer <benm@mono-cvs.ximian.com>
Mon, 22 Aug 2005 23:09:48 +0000 (23:09 -0000)
committerBen Maurer <benm@mono-cvs.ximian.com>
Mon, 22 Aug 2005 23:09:48 +0000 (23:09 -0000)
* anonymous.cs: If the anon method is pulled into a helper class,
it needs to be `internal' not `private'. Fixes runtime behavior on
msft. bug #75704

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

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

index 3ca6b4275663d3d7a6835ee02ffc00fbe19bab83..d1802dc3404e590243c1cc52717b9817ca9983c1 100644 (file)
@@ -1,3 +1,9 @@
+2005-08-22  Ben Maurer  <bmaurer@ximian.com>
+
+       * anonymous.cs: If the anon method is pulled into a helper class,
+       it needs to be `internal' not `private'. Fixes runtime behavior on
+       msft. bug #75704
+
 2005-08-20  Martin Baulig  <martin@ximian.com>
 
        * anonymous.cs (CaptureContext.CaptureThis): Create the topmost
index 14e3995930b86264f565b322b839451d7c1a028a..823352de1e2dd31bd2159f2285f9c19a868805e0 100644 (file)
@@ -158,6 +158,9 @@ namespace Mono.CSharp {
                        
                        if (type_host == null)
                                throw new Exception (String.Format ("Type host is null, Scope is {0}", Scope == null ? "null" : "Not null"));
+
+                       if (current_type != type_host)
+                               method_modifiers = Modifiers.INTERNAL;
                        
                        if (current_type == type_host && ec.IsStatic){
                                if (ec.IsStatic){