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
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
errors
/
cs0310-3.cs
blob
472a74c441a1b0e38bfff324456b487533c4ddc5
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: 18
3
4
public class
Foo
<
T
>
5
where T
:
new
()
6
{
7
}
8
9
abstract class
A
10
{
11
public
A
()
12
{ }
13
}
14
15
class
X
16
{
17
Foo
<
A
>
foo
;
18
19
static void
Main
()
20
{
21
}
22
}