* test-28.cs: Improved test: before we were failing on abstract
indexers invoked in the same class (as the accessor would have no
body).
svn path=/trunk/mcs/; revision=4318
+2002-05-05 Miguel de Icaza <miguel@ximian.com>
+
+ * test-28.cs: Improved test: before we were failing on abstract
+ indexers invoked in the same class (as the accessor would have no
+ body).
+
2002-05-02 Ravi Pratap <ravi@ximian.com>
* test-113.cs : Another test for overload resolution ;-)
abstract class A {
- protected abstract int this [int a] { get; }
+ protected abstract int this [int a] { get; }
+
+ public int EmulateIndexer (int a)
+ {
+ return this [a];
+ }
}
class B : A {
static int Main ()
{
X x = new X ();
- int b;
x [0] = 1;
if (x.v1 != 1)
if (x [0] != 1)
return 2;
+ B bb = new B ();
+
+ if (bb.EmulateIndexer (10) != 10)
+ return 3;
+
return new B ().M ();
}
}