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-03-03 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
errors
/
cs0188-4.cs
blob
93b0cfc87f85707ddd2658c0bb76aed1e5f0c87c
1
// CS0188: The `this' object cannot be used before all of its fields are assigned to
2
// Line: 16
3
4
struct
Foo
5
{
6
int
bar
;
7
int
baz
;
8
9
public int this
[
int
i
] {
10
get
{ return bar; }
11
}
12
13
public
Foo
(
int
baz
)
14
{
15
this
.
baz
=
baz
;
16
bar
=
this
[
2
] -
1
;
17
}
18
}