2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-064.cs
blob8df837934c57a85a26855e0a541a30c64d7f81a2
1 using System;
3 public interface IHello<T>
4 { }
6 public interface IFoo<T>
8 IHello<T> GetHello ();
11 public interface IBar<T> : IFoo<T>
12 { }
14 public class Foo<T> : IBar<T>, IFoo<T>
16 public Hello GetHello ()
18 return new Hello (this);
21 IHello<T> IFoo<T>.GetHello ()
23 return new Hello (this);
26 public class Hello : IHello<T>
28 public readonly Foo<T> Foo;
30 public Hello (Foo<T> foo)
32 this.Foo = foo;
37 class X
39 static void Main ()
40 { }