Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-124.cs
1 using System;
2
3 interface IFoo <T>
4 {
5         T this [int index] {
6                 get; set;
7         }
8 }
9
10 public class FooCollection <T> : IFoo <T>
11 {
12         T IFoo<T>.this [int index] {
13                 get {
14                         return default(T);
15                 }
16                 set {
17                 }
18         }
19 }
20
21 class X
22 {
23         public static void Main ()
24         {
25                 IFoo<int> foo = new FooCollection<int> ();
26                 int a = foo [3];
27                 Console.WriteLine (a);
28         }
29 }