[Mono-bugs] [Bug 23758] New - MCS currently ignores accessibility

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
23 Apr 2002 00:40:00 -0000


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 crichton@gimp.org.

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

--- shadow/23758	Mon Apr 22 20:40:00 2002
+++ shadow/23758.tmp.1706	Mon Apr 22 20:40:00 2002
@@ -0,0 +1,57 @@
+Bug#: 23758
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: crichton@gimp.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MCS currently ignores accessibility
+
+Description of Problem:
+mcs currently ignores the accessibility of class methods (and maybe even
+other non-top level types)
+
+Steps to reproduce the problem:
+Compile this conde with csc and mcs:
+
+
+using System;
+
+
+public class Block
+{
+        public int b1;
+        protected int b2;
+        internal int b3;
+        private int b4;
+        protected internal int b5;
+        // This should be *private*
+        int b6;
+}       
+
+public class Test 
+{
+
+        public static void Main() 
+        {
+                Block b = new Block();
+                b.b1 = 1;
+                b.b2 = 2;
+                b.b3 = 3;
+                b.b4 = 4;
+                b.b5 = 5;
+                b.b6 = 6;
+        }
+}
+
+With csc, b2, b4, and b6 will be flagged as errors (you cannot access
+them).  mcs gives no error.