Merge pull request #4935 from lambdageek/dev-handles-may
[mono.git] / mcs / tests / test-236.cs
1 // Bug #56300
2
3 using System;
4 using System.Collections;
5
6 namespace Tests
7 {
8         public interface IIndexer { object this[int index] { get; set; } }
9         
10         public class Test : IIndexer
11         {
12                 object[] InnerList;
13                 object IIndexer.this[int index] { 
14                         get { return InnerList[index]; }
15                         set { InnerList[index] = value; }
16                 }
17
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");
23                 }
24         }
25 }