**** Merged from MCS ****
[mono-project.git] / mcs / errors / gcs0310-3.cs
blobbf3547f61204e8f971bbb8d01fce874d460cebdf
1 // CS0310: The type 'A' must have a public parameterless constructor in
2 // order to use it as parameter 'T' in the generic type or method 'Foo<T>'
3 // Line: 18
5 public class Foo<T>
6 where T : new ()
10 abstract class A
12 public A ()
13 { }
16 class X
18 Foo<A> foo;
20 static void Main ()