2010-05-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / tests / gtest-anon-13.cs
index 6bd016b19941a412e2b2dd0920f4a94cbc4e1022..99d55bc821b8bfcf95e1e4146484f8431cd0bbd5 100644 (file)
@@ -1,30 +1,18 @@
 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 ()
+       { }
 }