[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / gtest-610.cs
blob5299a5705a35415b9af39b4ffe1250c7e3341b17
1 using System;
3 class G1<T1, T2>
4 where T1 : B
5 where T2 : T1
7 public static T2 Test1 (B b)
9 return (T2)b;
12 public static T2 Test2 (A a)
14 return (T2)a;
17 public static T2 Test3 (dynamic a)
19 return (T2)a;
23 class B : A
27 class A
29 static void Main ()
31 G1<B, B>.Test1 (new B ());
32 G1<B, B>.Test2 (new B ());
33 G1<B, B>.Test3 (null);