2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-236.cs
blobb47ed0b5ba19d5dae0b4008e4fe4f34e26a4b7a8
1 // Bug #56300
3 using System;
4 using System.Collections;
6 namespace Tests
8 public interface IIndexer { object this[int index] { get; set; } }
10 public class Test : IIndexer
12 object[] InnerList;
13 object IIndexer.this[int index] {
14 get { return InnerList[index]; }
15 set { InnerList[index] = value; }
18 public static void Main() {
19 if (Attribute.GetCustomAttribute(
20 typeof(Test),
21 typeof(System.Reflection.DefaultMemberAttribute)) != null)
22 throw new Exception("Class 'Test' has a DefaultMemberAttribute");