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
[Http]: Cosmetic, remove some dead code.
[mono-project.git]
/
mcs
/
errors
/
cs0191-2.cs
blob
1f1348e06c2af3814bf2f2568a5b4bfa73761b35
1
// CS0191: A readonly field `Foo.i' cannot be assigned to (except in a constructor or a variable initializer)
2
// Line: 10
3
4
class
Foo
{
5
readonly int
i
;
6
Foo
()
{ }
7
Foo
(
int
i
)
8
{
9
Foo x
=
new
Foo
();
10
x
.
i
=
i
;
11
}
12
static void
Main
()
{ Foo y = new Foo (0); }
13
}