blob: 93b0cfc87f85707ddd2658c0bb76aed1e5f0c87c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// CS0188: The `this' object cannot be used before all of its fields are assigned to
// Line: 16
struct Foo
{
int bar;
int baz;
public int this [int i] {
get { return bar; }
}
public Foo (int baz)
{
this.baz = baz;
bar = this [2] - 1;
}
}
|