[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-057.cs
blob603d348bc4f54f7610841a9e9611824ba5e2eeb1
1 using System;
3 interface IHello<T>
5 void Print (T t);
8 interface Foo
10 IHello<U> Test<U> ();
13 class Hello<T> : IHello<T>, Foo
15 public void Print (T t)
17 Console.WriteLine ("Hello: {0}", t);
20 public IHello<U> Test<U> ()
22 return new Hello<U> ();
26 class X
28 public static void Main ()
30 Hello<int> hello = new Hello<int> ();
31 hello.Print (5);
32 hello.Test<float> ().Print (3.14F);
34 IHello<string> foo = hello.Test<string> ();
35 foo.Print ("World");