repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove useless ip += from MINT_JMP, it is assigned later. (#19217)
[mono-project.git]
/
mcs
/
errors
/
cs0310-5.cs
blob
90a4cd62fe19f17302ae6db6085aa677e3b667e0
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
}