Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / errors / cs0131-4.cs
index a1e21bf37d73fcbe46b3916e4d93b7140b8ef59d..07af7193e2d646a7c674bddfea6848c2cbbe801a 100644 (file)
@@ -1,10 +1,19 @@
-// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer\r
-// Line: 8\r
-\r
-using System;\r
-\r
-public class Test {\r
-       void Main () {\r
-               Console.WriteLine (++0);\r
-       }\r
-}
\ No newline at end of file
+// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
+// Line: 17
+
+public class Person
+{
+       string _name;
+
+       public string Name
+       {
+               get { return _name; }
+               set { _name = value; }
+       }
+
+       public static void Main ()
+       {
+               Person johnDoe = new Person ();
+               (string) johnDoe.Name = "John Doe";
+       }
+}