Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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 ();
}
}