summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-189.cs
blob: 05d0019a3f12d08a639731bcc44db711b25cdfdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
interface IFoo {}
class Bar : IFoo {}

class Cont<T> {
  T f;
  public Cont(T x) { f = x; }
  public override string ToString ()
  {
    return f.ToString ();
  }
}

class M {
  public static void Main ()
  {
    Cont<IFoo> c = new Cont<IFoo> (new Bar ());
    System.Console.WriteLine (c);
  }
}