Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0310-6.cs
1 // 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>'
2 // Line: 18
3
4 public class Class1
5 {
6         public Class1 (int i) { }
7 }
8
9 public class Class2<T>
10 {
11 }
12
13 public class Class3<T> where T : new ()
14 {
15 }
16
17
18 class A : Class2<Class3<Class1>>
19 {
20 }
21