repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
gcs0304.cs
blob
d9f3591c16cc19be663565206f0d5735f24046b7
1
// CS0304: Cannot create an instance of the variable type 'T' because it doesn't have the new() constraint
2
// Line: 9
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
}