repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0192.cs
blob
6590e4acda731736aab8beb02e03a3039448c36d
1
// cs0192.cs: 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
Console
.
WriteLine
(
"Test cs0192.cs"
);
23
}
24
}