[Mono-bugs] [Bug 26264][Nor] New - Explicit interface property implementation and method names.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
14 Jun 2002 11:38:07 -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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=26264
--- shadow/26264 Fri Jun 14 07:38:07 2002
+++ shadow/26264.tmp.29146 Fri Jun 14 07:38:07 2002
@@ -0,0 +1,47 @@
+Bug#: 26264
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Explicit interface property implementation and method names.
+
+Compile the following sample with mcs and csc:
+
+using System;
+interface IA {
+ void doh();
+}
+interface IB {
+
+ IA Prop {get;}
+}
+class A : IA {
+ public void doh() {}
+}
+class T : IB {
+ IA IB.Prop {
+ get { return new A(); }
+ }
+ public A Prop {
+ get { return new A(); }
+ }
+ static int Main() {
+ return 0;
+ }
+}
+
+csc won't create the IB.Prop property in the T class, but it will emit
+the get method anyway, with the name changed to IB.get_Prop.
+This issue was reported by "Francisco Jr." <fxjrlists@yahoo.com.br>
+on mono-list: it happens compiling System.Data.