[Mono-bugs] [Bug 56174][Maj] New - MCS allows accessing static methods with instance references
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Mar 2004 14:56:16 -0500 (EST)
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 lluis@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56174
--- shadow/56174 2004-03-29 14:56:16.000000000 -0500
+++ shadow/56174.tmp.27649 2004-03-29 14:56:16.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 56174
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lluis@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS allows accessing static methods with instance references
+
+This test case shows the bug. Notice that it works if "Start" is not
+overloaded.
+
+using System;
+
+class TestIt
+{
+ public static void Main()
+ {
+ MyClass p = new MyClass();
+ p.Start ("hi");
+ }
+}
+
+class MyClass
+{
+ public void Start()
+ {
+ }
+
+ public static void Start (string info)
+ {
+ }
+}