blob: 6ead083a7a5e67410835b1e44d6c2ca7714e9117 (
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
{
public int bar;
public int baz;
public int this [int i] {
get { return bar; }
}
public Foo (int baz)
{
this.baz = baz;
bar = this [2] - 1;
}
}
|