Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-507.cs
1 class A
2 {
3         public static int Main ()
4         {
5                 if (new B<object> () [4] != 2)
6                         return 1;
7                 
8                 return 0;
9         }
10 }
11
12 public class B<T> {
13         public int this[T key] {
14                 get { return 1; }
15         }
16
17         public int this[object key] {
18                 get { return 2; }
19         }
20 }
21