[Mono-bugs] [Bug 49840][Wis] New - MCS does not understand `protected internal' on properties

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 19 Oct 2003 13:59:59 -0400 (EDT)


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

--- shadow/49840	2003-10-19 13:59:59.000000000 -0400
+++ shadow/49840.tmp.22205	2003-10-19 13:59:59.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 49840
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MCS does not understand `protected internal' on properties
+
+Description of Problem:
+MCS treats `protected internal' on properties as if it were `internal'
+
+Steps to reproduce the problem:
+
+server.cs:
+public class Greeter {
+	protected internal string Message { get { return "Hello, World"; }}
+}
+
+client.cs:
+public class ConsoleGreeter : Greeter {
+	public static void Main () { new ConsoleGreeter ().SayHello (); }
+	public void SayHello () { System.Console.WriteLine (Message); }
+}
+
+mcs server.cs /target:library; mcs client.cs /r:server.dll
+
+Actual Results:
+from the second one:
+error CS0122: `Message' is inaccessible because of its protection level 
+
+
+Expected Results:
+both compile