[Mono-bugs] [Bug 80321][Min] New - Missing compiler error CS0536
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Dec 19 23:47:49 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 monkey at jpobst.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80321
--- shadow/80321 2006-12-19 23:47:49.000000000 -0500
+++ shadow/80321.tmp.27206 2006-12-19 23:47:49.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 80321
+Product: Mono: Compilers
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: monkey at jpobst.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Missing compiler error CS0536
+
+Compile the following:
+
+using System;
+
+public class MySubClass : MyTest, ICloneable
+{
+ static void Main ()
+ {
+ }
+}
+
+public class MyTest
+{
+ internal object Clone ()
+ {
+ return MemberwiseClone ();
+ }
+}
+
+In VS2005, which I assume is csc, the following error is produced:
+"'MySubClass' does not implement interface member
+'System.ICloneable.Clone()'. 'MyTest.Clone()' is either static, not public,
+or has the wrong return type."
+
+Both mcs and gmcs produce no error.
More information about the mono-bugs
mailing list