[Mono-bugs] [Bug 58413][Min] New - mcs allows ref in an interface method implemented as out in a class
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 12 May 2004 21:40:14 -0400 (EDT)
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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58413
--- shadow/58413 2004-05-12 21:40:14.000000000 -0400
+++ shadow/58413.tmp.12870 2004-05-12 21:40:14.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 58413
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs allows ref in an interface method implemented as out in a class
+
+Try compiling this:
+----
+using System;
+interface X {
+ void Hola (ref string name);
+}
+
+class Test : X {
+ static void Main ()
+ {
+ }
+
+ public void Hola (out string name)
+ {
+ name = null;
+ }
+}
+-----
+
+Actual results:
+Compilation succedeed.
+
+Expected results:
+error.cs(6,7): error CS0535: 'Test' doesn't implement interface member
+'X,Hola(ref string)'