Merge pull request #3585 from lateralusX/jlorenss/win-counter-warning
[mono.git] / mcs / errors / cs0311-5.cs
1 // CS0311: The type `object' cannot be used as type parameter `U' in the generic type or method `G<C>.Method<U>()'. There is no implicit reference conversion from `object' to `C'
2 // Line: 9
3
4 public class C
5 {
6         public static void Main ()
7         {
8                 var mc = new G<C> ();
9                 mc.Method<object> ();
10         }
11 }
12
13 public class G<T> where T : C
14 {
15         public void Method<U> () where U : T
16         {
17         }
18 }