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
2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git]
/
mcs
/
errors
/
cs0191-2.cs
blob
7a98166a4a669b508bd305adabf970dc50d0e81b
1
// cs0191-2.cs: 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
}