projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Reflect latest API changes.
[mono.git]
/
mcs
/
errors
/
gcs0304.cs
1
// CS0304: Cannot create an instance of the variable type 'T' because it
2
// doesn't have the new() constraint
3
// Line: 9
4
5
public class Foo<T>
6
{
7
public T Create ()
8
{
9
return new T ();
10
}
11
}
12
13
class X
14
{
15
static void Main ()
16
{
17
}
18
}