Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0188-4.cs
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         public int bar;
7         public 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 }