projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* default.build: Fix relative path to key. Avoid use of ugly foreach
[mono.git]
/
mcs
/
errors
/
gcs0310-2.cs
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
}