[Mono-bugs] [Bug 52458][Wis] Changed - Scope problem when overriding private method in nested type

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Dec 2003 17:04:42 -0500 (EST)


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=52458

--- shadow/52458	2003-12-22 16:07:34.000000000 -0500
+++ shadow/52458.tmp.10335	2003-12-22 17:04:41.000000000 -0500
@@ -73,6 +73,27 @@
 
 csc gives
 
 t.cs(12) error CS0506: `B.C.Blah': cannot override inherited member
 `B.Blah' because it is not virtual, abstract or override
 
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-22 17:04 -------
+wrt to the origional issue, it looks like csc is not respecting the spec:
+"For the purposes of locating the overridden base method, a method is
+considered accessible if it is public, if it is protected, if it is
+protected internal, or if it is internal and declared in the same
+program as C."
+
+This says nothing about private and nested types. However, this
+statement is a departure from the normal accessibility rules, so we
+should go with csc, I think.
+
+On the other one, it is crystal clear:
+
+"The overridden base method is a virtual, abstract, or override
+method. In other words, the overridden base method cannot be static or
+non-virtual."
+
+wrt the second problem, the spec is quite clear:
+
+