Merge pull request #4904 from kumpera/more_opts
[mono.git] / mono / tests / generic-delegate.2.cs
index 125088b567683f95e933147988e8cf851a70b983..4123893f0d080e6773b063ff19cd2be317b849c5 100644 (file)
@@ -1,3 +1,5 @@
+using System;
+
 public class ClassA {}
 
 public delegate int IntDelegate (int x);
@@ -53,6 +55,13 @@ public class main {
                        return 1;
                if (stda ().GetType () != typeof (ClassA[]))
                        return 1;
+
+               tda = (TDelegate<ClassA>)Delegate.CreateDelegate (typeof (TDelegate<ClassA>),
+                               typeof (Gen<ClassA>).GetMethod ("staticTFunction"));
+
+               if (tda ().GetType () != typeof (ClassA[]))
+                       return 1;
+
                return 0;
        }
 }