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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 27 Apr 2004 18:50:34 -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 18:45:48.000000000 -0400
+++ shadow/52146.tmp.27507	2004-04-27 18:50:34.000000000 -0400
@@ -60,6 +60,17 @@
 Because a nested class can see private members of its parent class.
 
 ------- Additional Comments From pcgod@gmx.net  2004-04-27 14:07 -------
 Created an attachment (id=7510)
 updated patch
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-04-27 18:50 -------
+parent_constructor.DeclaringType.Assembly.FullName ==
+ec.ContainerType.Assembly.FullName) &&
+This is not necessary, just compare the assemblies.
+
+ec.ContainerType.BaseType == parent_constructor.DeclaringType)) {
+It need not be a direct nesting. Use the IsXXX methods in TypeManager.
+
+Also, this is not a contest for `how complex can I make an if
+statement'. Let's break this down into readable code please :-).