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
[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[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
}