Bugzilla – Bug 311072
MCS currently ignores accessibility
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by crichton@gimp.org 2002-04-22 20:39:59 MST ---- 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. ---- Additional Comments From miguel@ximian.com 2002-04-22 23:01:41 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO21147 *** Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"