* test-148.cs: Added testcase for base indexers.
svn path=/trunk/mcs/; revision=7527
+2002-09-17 Martin Baulig <martin@gnome.org>
+
+ * test-148.cs: Added testcase for base indexers.
+
2002-09-14 Martin Baulig <martin@gnome.org>
* test-166.cs: New test.
}
}
+ public int InstanceTest ()
+ {
+ double index = 5;
+
+ Console.WriteLine ("INSTANCE TEST");
+
+ if (this [index] != 4)
+ return 6;
+ if (base [index] != 3)
+ return 7;
+
+ return 0;
+ }
+
public static int Test ()
{
Z z = new Z ();
if (y [index] != 3)
return 5;
- return 0;
+ return z.InstanceTest ();
}
public static int Main ()