[Mono-bugs] [Bug 22733] New - Error compiling indexers.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
29 Mar 2002 01:06:58 -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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=22733
--- shadow/22733 Thu Mar 28 20:06:58 2002
+++ shadow/22733.tmp.7570 Thu Mar 28 20:06:58 2002
@@ -0,0 +1,40 @@
+Bug#: 22733
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Error compiling indexers.
+
+The following code does not compile:
+
+abstract class A {
+ protected abstract int this [int a] { get; }
+}
+
+class B : A {
+ protected override int this [int a] { get { return a;} }
+
+ public int M ()
+ {
+ return this [0];
+ }
+
+}
+
+class Test {
+ public static int Main ()
+ {
+ return new B ().M ();
+ }
+}