Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

19 lines
371 B
C#

// 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'
// Line: 9
public class C
{
public static void Main ()
{
var mc = new G<C> ();
mc.Method<object> ();
}
}
public class G<T> where T : C
{
public void Method<U> () where U : T
{
}
}