repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-01-03 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
gcs0310-4.cs
blob
d1e6e359433f27512ed327323c0cf6dde4de851a
1
// CS0310: The type `Foo' must have a public parameterless constructor in order to use it as parameter `a' in the generic type or method `C<a>'
2
// Line: 14
3
class
C
<
a
>
where a
:
new
() {
4
}
5
6
class
Foo
{
7
public
Foo
(
int
x
)
{ }
8
}
9
10
class
X
11
{
12
static void
Main
()
13
{
14
C
<
Foo
>
x
;
15
}
16
}
17
18