2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-124.cs
blobb678b148ce22c8d703c98477a24478bef789a4d5
1 using System;
3 interface IFoo <T>
5 T this [int index] {
6 get; set;
10 public class FooCollection <T> : IFoo <T>
12 T IFoo<T>.this [int index] {
13 get {
14 return default(T);
16 set {
21 class X
23 static void Main ()
25 IFoo<int> foo = new FooCollection<int> ();
26 int a = foo [3];
27 Console.WriteLine (a);