[Mono-bugs] [Bug 32709][Nor] New - should flag access to protected base members through instance.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
22 Oct 2002 23:39:30 -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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=32709
--- shadow/32709 Tue Oct 22 19:39:30 2002
+++ shadow/32709.tmp.21420 Tue Oct 22 19:39:30 2002
@@ -0,0 +1,37 @@
+Bug#: 32709
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: should flag access to protected base members through instance.
+
+The new property code broke the existing code to flag error 1540:
+
+The follwoing code should not compile:
+
+
+public class Base {
+ protected void func ()
+ {
+ }
+
+}
+
+public class Derived : Base {
+ public static void test (Base anotherInstance)
+ {
+ anotherInstance.func ();
+ }
+
+}