linux-packaging-mono/mcs/tests/test-anon-111.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
393 B
C#

using System;
public delegate void Foo ();
public class Test<R>
{
public void World<S,T> (S s, T t)
where S : X
where T : S
{ }
public void Hello<U,V> (U u, V v)
where U : X
where V : U
{
Foo foo = delegate {
World (u, v);
};
foo ();
}
}
public class X
{
public static void Main ()
{
X x = new X ();
Test<int> test = new Test<int> ();
test.Hello (x, x);
}
}