2009-11-20 Marek Safar <marek.safar@gmail.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;