2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs0310-3.cs
blob472a74c441a1b0e38bfff324456b487533c4ddc5
1 // CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
2 // Line: 18
4 public class Foo<T>
5 where T : new ()
9 abstract class A
11 public A ()
12 { }
15 class X
17 Foo<A> foo;
19 static void Main ()