[Mono-bugs] [Bug 36311][Nor] New - accessibility rules not enforced
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sun, 5 Jan 2003 02:42:54 -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 cdaly@locosoft.net.
http://bugzilla.ximian.com/show_bug.cgi?id=36311
--- shadow/36311 Sun Jan 5 02:42:54 2003
+++ shadow/36311.tmp.25874 Sun Jan 5 02:42:54 2003
@@ -0,0 +1,62 @@
+Bug#: 36311
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: cdaly@locosoft.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: accessibility rules not enforced
+
+Description of Problem:
+
+This was observed under mcs 0.17. See the comment in the test case
+below. mcs compiles this code but it should fail with an error.
+
+
+namespace N1
+{
+ public class Foo : N2.Bar
+ {
+ // Baz is visible to the name resolver through the base class
+ // but it is not accessible (it's private to Bar).
+ //
+ // csc gives the error:
+ // 'N2.Bar.Baz' is inaccessible due to its protection level
+ //
+ private Baz baz;
+ }
+}
+namespace N2
+{
+ public class Bar
+ {
+ private class Baz
+ {
+ }
+ }
+}
+
+
+
+Steps to reproduce the problem:
+1. compile the above test case
+
+Actual Results: compilation successful
+
+
+Expected Results: error message stating Baz is not accessible
+
+
+How often does this happen? always
+
+
+Additional Information: