[Mono-bugs] [Bug 571702] New: Suboptimal error message on constructor initializers.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jan 18 20:01:53 EST 2010
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: mono-bugs at lists.ximian.com
ReportedBy: miguel at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list