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