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
[ilasm] Don't break arguments compatiblity
[mono-project.git]
/
mcs
/
errors
/
cs1649.cs
blob
ae1edcd1b5dafbbdca6d29614db2a030d7bb10df
1
// CS1649: Members of readonly field `B.a' cannot be passed ref or out (except in a constructor)
2
// Line: 13
3
4
class
B
5
{
6
public struct
A
7
{
8
public int
val
;
9
}
10
11
public readonly
A a
=
new
A
();
12
}
13
14
class
C
15
{
16
static void
f
(
ref int
i
)
17
{
18
i
=
44
;
19
}
20
21
static void
Main
()
22
{
23
B b
=
new
B
();
24
f
(
ref
b
.
a
.
val
);
25
}
26
}