[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / gtest-064.cs
1 using System;
2
3 public interface IHello<T>
4 { }
5
6 public interface IFoo<T>
7 {
8         IHello<T> GetHello ();
9 }
10
11 public interface IBar<T> : IFoo<T>
12 { }
13
14 public class Foo<T> : IBar<T>, IFoo<T>
15 {
16         public Hello GetHello ()
17         {
18                 return new Hello (this);
19         }
20
21         IHello<T> IFoo<T>.GetHello ()
22         {
23                 return new Hello (this);
24         }
25
26         public class Hello : IHello<T>
27         {
28                 public readonly Foo<T> Foo;
29
30                 public Hello (Foo<T> foo)
31                 {
32                         this.Foo = foo;
33                 }
34         }
35 }
36
37 class X
38 {
39         public static void Main ()
40         { }
41 }