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
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git]
/
mcs
/
errors
/
cs1648-2.cs
blob
b470e10acecc1c18955931e25a50555307c6ccac
1
// CS1648: Members of readonly field `Test.p' cannot be modified (except in a constructor or a variable initializer)
2
// Line: 17
3
4
using
System
;
5
6
public class
Test
7
{
8
struct
Container
9
{
10
public int
foo { get; set; }
11
}
12
13
readonly
Container p
;
14
15
void
Foo
()
16
{
17
p
.
foo
=
0
;
18
}
19
20
public static void
Main
()
21
{
22
}
23
}