2009-12-09 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-anon-11.cs
blob6bd016b19941a412e2b2dd0920f4a94cbc4e1022
1 using System;
3 public delegate void Foo ();
5 public class Test<R>
7 public void World<S,T> (S s, T t)
8 where S : X
9 where T : S
10 { }
12 public void Hello<U,V> (U u, V v)
13 where U : X
14 where V : U
16 Foo foo = delegate {
17 World (u, v);
22 public class X
24 public static void Main ()
26 X x = new X ();
27 Test<int> test = new Test<int> ();
28 test.Hello (x, x);