[Mono-bugs] [Bug 52146][Min] Changed - MCS does not respect private ctors

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 27 Apr 2004 11:33:23 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52146

--- shadow/52146	2004-04-27 09:01:31.000000000 -0400
+++ shadow/52146.tmp.20435	2004-04-27 11:33:23.000000000 -0400
@@ -41,6 +41,20 @@
 A.A() is inaccessible due to its protection level
 
 ------- Additional Comments From pcgod@gmx.net  2004-04-27 09:01 -------
 Created an attachment (id=7508)
 patch
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-04-27 11:33 -------
+parent_constructor.IsAssembly needs to be complemented with a check 
+that the class and its base are in the same assembly.
+
+Also, I think this would be legal:
+
+class A {
+    private A () {}
+    class Nested : A {
+    }
+}
+
+Because a nested class can see private members of its parent class.