Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs0310-2.cs
blobf553c5b7328efd4607f41e8676ee49fee5bfd193
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: 20
4 public class Foo<T>
5 where T : new ()
9 class A
11 private A ()
12 { }
15 class X
17 static void Main ()
19 object o = new Foo<A> ();