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
avoid using a custom sources file for the net_2_1_raw profile
[mcs.git]
/
errors
/
gcs0451.cs
blob
da3301b0eca5975d6b3aa513a7d4118f70f432da
1
// CS0451: The `new()' constraint cannot be used with the `struct' constraint
2
// Line: 8
3
4
class
C
5
{
6
public static void
Foo
<
T
>()
where T
:
struct
,
new
()
7
{
8
}
9
}