a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
16 lines
313 B
C#
16 lines
313 B
C#
// CS0310: The type `string' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Program.Ret<T>()'
|
|
// Line: 10
|
|
|
|
public static class Program
|
|
{
|
|
static void Main ()
|
|
{
|
|
Ret<string> ();
|
|
}
|
|
|
|
static T Ret<T> () where T : new ()
|
|
{
|
|
return new T ();
|
|
}
|
|
}
|