repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(DISTFILES): Comment out a few missing files.
[mono-project.git]
/
mcs
/
errors
/
gcs0304.cs
blob
4eb1d929da7260fcaa945d1bbc7ca6397908f118
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
}