[System] Use GZipStream from corefx
[mono-project.git] / mono / tests / verifier / valid_mvar_is_transitive_compatibility.cs
blobfc5b16a70734ac6a1bc87c3b867b8513060c65f3
1 using System;
2 using System.Reflection;
3 using System.Collections.Generic;
6 class Test
8 static U[] Foo<T, U> (T[] arg) where T : class, U
10 return arg;
13 public static IEnumerable<U> Foo2<T, U> (IEnumerable<T> arg) where T : class, U
15 return arg;
18 static IEnumerable<U[]> Foo3<T, U> (IEnumerable<T[]> arg) where T : class, U
20 return arg;
23 static int Main ()
25 var m = typeof (Test).GetMethod ("Foo2");
26 var gp = m.GetGenericArguments ();
27 var t = gp[0];
28 var u = gp[1];
29 Console.WriteLine (t);
30 Console.WriteLine (u);
31 Console.WriteLine (t.IsAssignableFrom (u));
32 Console.WriteLine (u.IsAssignableFrom (t));
33 return 0;