Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0304.cs
blob2760b2ca53d237d7d0c371aa68710b8449fffaa5
1 // CS0304: Cannot create an instance of the variable type `T' because it does not have the new() constraint
2 // Line: 8
4 public class Foo<T>
6 public T Create ()
8 return new T ();
12 class X
14 static void Main ()