[Mono-bugs] [Bug 75087][Nor] New - Procected static members are treated as public

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 29 07:56:00 EDT 2005


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 jo at lumumba.luc.ac.be.

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

--- shadow/75087	2005-05-29 07:56:00.000000000 -0400
+++ shadow/75087.tmp.18547	2005-05-29 07:56:00.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 75087
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jo at lumumba.luc.ac.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Procected static members are treated as public
+
+Description of Problem:
+When accessing a protected static member of class A in class B, where B is no subclass of A, the 
+compiler does not give an error.
+ 
+Steps to reproduce the problem:
+1. Access a protected static member of one class in another
+2. Compile the classes
+
+Actual Results:
+Compilation succeeds
+
+Expected Results:
+Error CS0122 should be given.
+
+How often does this happen? 
+Always
+
+Additional Information:
+The compiler does generate an error for private members.


More information about the mono-bugs mailing list