http://bugzilla.novell.com/show_bug.cgi?id=571702
http://bugzilla.novell.com/show_bug.cgi?id=571702#c0 Summary: Suboptimal error message on constructor initializers. Classification: Mono Product: Mono: Compilers Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- This error usually bytes me, as I am never sure exactly what failed, it usually takes some trial and error, today I finally figured it out and decided to file the bug: This sample: class X { public int Field; static void Main () { var x = new X () { Field = 1; } } } Produces this error because of the ";" after 1: a.cs(7,34): error CS1526: A new expression requires () or [] after type a.cs(10,1): error CS8025: Parsing error It probably should complain about ";" not being valid in that context. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
