Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2003-05-26 23:00:21 +0400
committerMiguel de Icaza <miguel@gnome.org>2003-05-26 23:00:21 +0400
commit8e086964640379e7f26c18d3b5ee517de0ed25ad (patch)
tree2177bf02b0760791a4c75a1862127a918be78e3d /mcs/tests/test-148.cs
parentc311b54fa9bcb17307a2dd179afd772c4fa2ea64 (diff)
Improve test
svn path=/trunk/mcs/; revision=14898
Diffstat (limited to 'mcs/tests/test-148.cs')
-rw-r--r--mcs/tests/test-148.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-148.cs b/mcs/tests/test-148.cs
index a442f7b260a..61aa394433c 100644
--- a/mcs/tests/test-148.cs
+++ b/mcs/tests/test-148.cs
@@ -122,6 +122,15 @@ public class Z : Y
return 0;
}
+ class MyArray : ArrayList
+ {
+ public override object this[int index]
+ {
+ get { return base[index]; }
+ set { base[index] = value;}
+ }
+ }
+
public static int Main ()
{
int result = Test ();
@@ -131,6 +140,14 @@ public class Z : Y
E e = new E ();
e.g = "monkey";
+ //
+ // Now test base [...]
+ //
+ MyArray arr = new MyArray ( );
+ arr.Add ( "String value" );
+ if (arr[0].ToString () != "String value")
+ return 100;
+
return result;
}