Enable 135 again
[mono.git] / mcs / tests / test-148.cs
index a442f7b260a856a235ad4d5aa57df276369dc2a1..61aa394433ca6f3f52cb63a1e66a57ad91456ae0 100644 (file)
@@ -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;
        }