Updated with review feedback.
[mono.git] / mcs / errors / cs0310-4.cs
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 () {
4 }
5
6 class Foo {
7   public Foo (int x) { }
8 }
9
10 class X
11 {
12         static void Main ()
13         {
14           C<Foo> x;
15         }
16 }
17  
18