2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0310-4.cs
blobd1e6e359433f27512ed327323c0cf6dde4de851a
1 // CS0310: The type `Foo' must have a public parameterless constructor in order to use it as parameter `a' in the generic type or method `C<a>'
2 // Line: 14
3 class C <a> where a : new () {
6 class Foo {
7 public Foo (int x) { }
10 class X
12 static void Main ()
14 C<Foo> x;