Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
454 B
C#

class C<X,Y> {
class Q<A,B> {
public void apply (C<X,Y> t)
{
t.bar<A,B>();
}
}
public void foo<A,B> ()
{
Q<A,B> q = new Q<A,B>();
q.apply(this);
}
public void bar<A,B> ()
{
System.Console.WriteLine ("'{0} {1} {2} {3}'",
typeof(X),typeof(Y),typeof(A),typeof(B));
}
}
class X {
public static void Main () {
C<int,string> c = new C<int,string>();
c.foo<float,string> ();
}
}