using System;
+using System.Runtime.InteropServices;
+using System.Collections.Generic;
-public delegate void Foo ();
-
-public class Test<R>
+class X
{
- public void World<S,T> (S s, T t)
- where S : X
- where T : S
- { }
+ public delegate T ModuleBinder<T> (object o);
- public void Hello<U,V> (U u, V v)
- where U : X
- where V : U
+ public ModuleBinder<TDelegate> CreateMethodUnscoped<TDelegate> ()
{
- Foo foo = delegate {
- World (u, v);
+ return delegate (object o) {
+ return (TDelegate)(object)null;
};
}
-}
-public class X
-{
- public static void Main ()
- {
- X x = new X ();
- Test<int> test = new Test<int> ();
- test.Hello (x, x);
- }
+ static void Main ()
+ { }
}