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
Fixes the mono/tests/gc-graystack-stress test on Windows x64
[mono-project.git]
/
mcs
/
errors
/
cs1650-3.cs
blob
e0cfa0c6ef0acb960b32917f9cb22353860130f7
1
// CS1650: Fields of static readonly field `C<T>.t' cannot be assigned to (except in a static constructor or a variable initializer)
2
// Line: 17
3
4
using
System
;
5
6
interface
I
7
{
8
int
X { get; set; }
9
}
10
11
class
C
<
T
>
where T
:
struct
,
I
12
{
13
static readonly
T t
;
14
15
public static void
Foo
()
16
{
17
t
.
X
=
42
;
18
}
19
}