[Mono-bugs] [Bug 78049][Nor] New - mcs refuses to compile valid C# program

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Apr 8 12:55:40 EDT 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 miguel at ximian.com.

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

--- shadow/78049	2006-04-08 12:55:40.000000000 -0400
+++ shadow/78049.tmp.14655	2006-04-08 12:55:40.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 78049
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs refuses to compile valid C# program
+
+The following was reported by Jon Jagger:
+
+This program currently fails to build:
+
+class Base
+{
+    public int Property { get { return 42; } }
+    static void Main () {}
+}
+
+class Derived : Base
+{
+    new public int get_Property() { return 42; }
+}
+
+It reports:
+
+ee.cs(9,20): error CS0115: `Derived.get_Property()': no suitable method
+found to override
+Compilation failed: 1 error(s), 0 warnings
+
+While it should build the program. 
+
+The details are on 17.2.7 "Reserved member names"


More information about the mono-bugs mailing list