Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-203.cs
1 class C<X,Y> {
2   class Q<A,B> {
3     public void apply (C<X,Y> t)
4         {
5           t.bar<A,B>();
6         }
7   }
8
9   public void foo<A,B> ()
10   {
11     Q<A,B> q = new Q<A,B>();
12         q.apply(this);
13   }
14
15   public void bar<A,B> ()
16   {
17     System.Console.WriteLine ("'{0} {1} {2} {3}'",
18 typeof(X),typeof(Y),typeof(A),typeof(B));
19   }
20 }
21
22 class X {
23   public static void Main () {
24     C<int,string> c = new C<int,string>();
25         c.foo<float,string> ();
26   }
27 }
28