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
[wasm] Fix WASM CI script. (#6741)
[mono-project.git]
/
mcs
/
errors
/
cs1648-3.cs
blob
7afc29f1930d0309ea7b55f85df9ed5fe228e36a
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 this
[
int
arg
] {
11
set
{
12
}
13
}
14
}
15
16
readonly
Container p
;
17
18
void
Foo
()
19
{
20
p
[
0
] =
0
;
21
}
22
23
public static void
Main
()
24
{
25
}
26
}