Move Enum and CorElementType to shared (dotnet/coreclr#23177)
[mono-project.git] / mcs / tests / gtest-611.cs
blob4841b0205ff80cf33fdd1bb31109eeb0549b0ea2
1 interface I
5 class X : I
9 class X2
11 public static void Main ()
13 Foo<I, I> (new X[0]);
14 Foo<X, I> (new X[0]);
17 static void Foo<T1,T2> (T2[] array) where T1 : class, T2
19 T1[] a = (T1[])array;
22 static void Foo<T1,T2> (T2[][] array) where T1 : class, T2
24 T1[][] a = (T1[][])array;