Merge pull request #4816 from BrzVlad/fix-remoting-exception
[mono.git] / mcs / tests / gtest-528.cs
1 using System;
2
3 public class GenericType<U> where U : IEquatable<U>
4 {
5         public U u;
6 }
7
8 public class Base
9 {
10         public virtual T Test<T> (GenericType<T> gt) where T : IEquatable<T>
11         {
12                 return gt.u;
13         }
14 }
15
16 public class Override : Base
17 {
18         public override T Test<T> (GenericType<T> gt)
19         {
20                 return base.Test (gt);
21         }
22
23         public static int Main ()
24         {
25                 Base b = new Override ();
26                 b.Test (new GenericType<int> ());
27                 return 0;
28         }
29 }