projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git]
/
mcs
/
errors
/
cs0310-5.cs
1
// 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>()'
2
// Line: 10
3
4
public static class Program
5
{
6
static void Main ()
7
{
8
Ret<string> ();
9
}
10
11
static T Ret<T> () where T : new ()
12
{
13
return new T ();
14
}
15
}