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-4.cs
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