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
w32file-unix.c: In function 'mono_w32file_get_file_size':
[mono-project.git]
/
mcs
/
errors
/
cs1650.cs
blob
04d1897394370e151878c11de90b6aba19d50600
1
// CS1650: 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