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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
