[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / gtest-529.cs
blobea42c7591bbc424494aa2c00df2b09566a93f2b2
1 using System;
3 public class GenericType<U, V> where U : IEquatable<U> where V : IEquatable<V>
5 public U u;
8 public class Base<V> where V : IEquatable<V>
10 public virtual T Test<T> (GenericType<T, V> gt) where T : IEquatable<T>
12 return gt.u;
16 public class Override<W> : Base<W> where W : IEquatable<W>
18 public override T Test<T> (GenericType<T, W> gt)
20 return base.Test (gt);
24 class M
26 public static int Main ()
28 Base<byte> b = new Override<byte> ();
29 b.Test (new GenericType<int, byte> ());
30 return 0;