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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
errors
/
cs0310-2.cs
blob
f553c5b7328efd4607f41e8676ee49fee5bfd193
1
// CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
2
// Line: 20
3
4
public class
Foo
<
T
>
5
where T
:
new
()
6
{
7
}
8
9
class
A
10
{
11
private
A
()
12
{ }
13
}
14
15
class
X
16
{
17
static void
Main
()
18
{
19
object
o
=
new
Foo
<
A
> ();
20
}
21
}