Merge pull request #2453 from kumpera/fix_ji_free
[mono.git] / mono / mini / objects.cs
index 2fe402f907f016291577350c5d7291ed91394daa..c6837933d3f5203420b50c086c7645ae8cbd1a85 100644 (file)
@@ -1708,6 +1708,25 @@ ncells ) {
        public static int test_42_pass_16byte_struct_split () {
                return pass_struct16 (null, null, null, null, null, new Struct16 () { a = 42 });
        }
+
+       public interface IComparer2
+       {
+               Type foo<T> ();
+       }
+
+       public class AClass : IComparer2 {
+               public Type foo<T> () {
+                       return typeof(T);
+               }
+       }
+
+       public static int test_0_delegate_to_virtual_generic_on_ifaces () {
+               IComparer2 c = new AClass ();
+
+               Func<Type> f = c.foo<string>;
+               return f () == typeof(string) ? 0 : 1;
+       }
+
 }
 
 #if __MOBILE__