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

22 lines
329 B
C#

// CS0310: The type `Class1' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Class3<T>'
// Line: 18
public class Class1
{
public Class1 (int i) { }
}
public class Class2<T>
{
}
public class Class3<T> where T : new ()
{
}
class A : Class2<Class3<Class1>>
{
}