svn path=/trunk/mcs/; revision=92461
--- /dev/null
+// 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 Bar {
+ get { return bar; }
+ }
+
+ public Foo (int baz)
+ {
+ this.baz = baz;
+ bar = Bar - 1;
+ }
+}
--- /dev/null
+// 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;
+ }
+}
+++ /dev/null
-<?xml version="1.0" encoding="iso-8859-1" ?>
-
-<ErrorDetails>
- <Summary>
- <p>
- Before a constructor can call any instance
- methods it must initialize all of its fields.
- </p>
- </Summary>
- <Details>
- <p>No instance member function can be called until all
- fields of the struct being constructed have been
- definitely assigned.
- </p>
-
- <p>See the ECMA 334 specification, section 18.3.8 for
- details on the constructor differences between structs
- and classes.
- </p>
- </Details>
-</ErrorDetails>