Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0311-5.cs
blob6876a98b25a5435e854a15bc39c3b4e98e63c83c
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
4 public class C
6 public static void Main ()
8 var mc = new G<C> ();
9 mc.Method<object> ();
13 public class G<T> where T : C
15 public void Method<U> () where U : T