projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-06-09 Sebastien Pouliot <sebastien@ximian.com>
[mono.git]
/
mcs
/
errors
/
gcs0310-3.cs
1
// CS0310: The type 'A' must have a public parameterless constructor in
2
// order to use it as parameter 'T' in the generic type or method 'Foo<T>'
3
// Line: 18
4
5
public class Foo<T>
6
where T : new ()
7
{
8
}
9
10
abstract class A
11
{
12
public A ()
13
{ }
14
}
15
16
class X
17
{
18
Foo<A> foo;
19
20
static void Main ()
21
{
22
}
23
}