[Mono-bugs] [Bug 77627][Nor] New - Missing CS1540

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 23 14:06:12 EST 2006


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 marek.safar at seznam.cz.

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

--- shadow/77627	2006-02-23 14:06:12.000000000 -0500
+++ shadow/77627.tmp.2880	2006-02-23 14:06:12.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 77627
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Missing CS1540
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1.
+
+class A {
+	protected int f { get { return 1; } }
+}
+
+class B : A {
+         int baz () { return new A().f; }
+   }
+ 
+
+Actual Results:
+
+No error.
+
+Expected Results:
+
+bug.cs(6,38): error CS1540: Cannot access protected member 'A.f' via a
+qualifier of type 'A'; the qualifier must be of type 'B' (or derived from it)
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list