[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / gtest-557.cs
blob494526b537b4b3520773140c126441a1cd31038f
1 using System.Collections.Generic;
3 class Test
5 static U[] Foo<T, U> (T[] arg) where T : class, U
7 return arg;
10 static void TestByRef<T> ()
12 T[] array = new T[10];
13 PassByRef (ref array[0]);
16 static void PassByRef<T> (ref T t)
18 t = default (T);
21 public static int Main ()
23 foreach (var e in Foo<string, object> (new string[] { "as" })) {
26 TestByRef<byte> ();
28 return 0;