X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0131-4.cs;h=07af7193e2d646a7c674bddfea6848c2cbbe801a;hb=15c0640201fee8407c4a945077e4bc41446bcac7;hp=a1e21bf37d73fcbe46b3916e4d93b7140b8ef59d;hpb=da4f9e9b2afb23791029d0bb09d78b868aabd870;p=mono.git diff --git a/mcs/errors/cs0131-4.cs b/mcs/errors/cs0131-4.cs index a1e21bf37d7..07af7193e2d 100644 --- a/mcs/errors/cs0131-4.cs +++ b/mcs/errors/cs0131-4.cs @@ -1,10 +1,19 @@ -// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer -// Line: 8 - -using System; - -public class Test { - void Main () { - Console.WriteLine (++0); - } -} \ 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"; + } +}