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
2010-01-03 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs1650.cs
blob
51f0bcccf4ca2d43ee831cf4cfe12e9b6977b4ab
1
// cs1650.cs: Fields of static readonly field `C.s' cannot be assigned to (except in a static constructor or a variable initializer)
2
// Line: 14
3
4
using
System
;
5
6
struct
S
{
7
public int
x
;
8
}
9
10
class
C
{
11
static readonly
S s
;
12
13
public static void
Main
(
String
[]
args
) {
14
s
.
x
=
42
;
15
Console
.
WriteLine
(
s
.
x
);
16
}
17
}
18