eol
[mcs.git] / tests / gtest-203.cs
blobfad76b1d9cd98703d092f274ecef7e60900e16a2
1 class C<X,Y> {
2 class Q<A,B> {
3 public void apply (C<X,Y> t)
5 t.bar<A,B>();
9 public void foo<A,B> ()
11 Q<A,B> q = new Q<A,B>();
12 q.apply(this);
15 public void bar<A,B> ()
17 System.Console.WriteLine ("'{0} {1} {2} {3}'",
18 typeof(X),typeof(Y),typeof(A),typeof(B));
22 class X {
23 public static void Main () {
24 C<int,string> c = new C<int,string>();
25 c.foo<float,string> ();