2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0188-4.cs
blob93b0cfc87f85707ddd2658c0bb76aed1e5f0c87c
1 // CS0188: The `this' object cannot be used before all of its fields are assigned to
2 // Line: 16
4 struct Foo
6 int bar;
7 int baz;
9 public int this [int i] {
10 get { return bar; }
13 public Foo (int baz)
15 this.baz = baz;
16 bar = this [2] - 1;