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
Merge pull request #3806 from BrzVlad/feature-parallel-gc-final
[mono-project.git]
/
mcs
/
errors
/
cs0192.cs
blob
c774495ab094ea0cef011f06e9e6fcdecdeff9df
1
// CS0192: A readonly field `A.a' cannot be passed ref or out (except in a constructor)
2
// Line: 17
3
4
using
System
;
5
6
class
A
7
{
8
public readonly int
a
=
5
;
9
10
public void
Inc
(
ref int
a
)
11
{
12
++
a
;
13
}
14
15
public void
IncCall
()
16
{
17
Inc
(
ref
a
);
18
}
19
20
static void
Main
()
21
{
22
}
23
}