[Mono-bugs] [Bug 52507][Wis] New - [PATCH] We report CS0145 as a parser error
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 15 Apr 2004 00:33:28 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=52507
--- shadow/52507 2004-04-15 00:33:28.000000000 -0400
+++ shadow/52507.tmp.20991 2004-04-15 00:33:28.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 52507
+Product: Mono: Compilers
+Version: unspecified
+OS: unknown
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PATCH] We report CS0145 as a parser error
+
+class T {
+ const int foo;
+ public static void Main()
+ {
+ }
+}
+
+Should give
+t.cs(2,15): error CS0145: A const field requires a value to be provided
+
+------- Additional Comments From pcgod@gmx.net 2003-12-23 20:50 -------
+Created an attachment (id=6317)
+proposed patch
+
+
+------- Additional Comments From bmaurer@users.sf.net 2003-12-23 21:16 -------
+<pcgod> BenM: the patch for the constant error is not correct... it
+makes 52499 compile without error...
+
+------- Additional Comments From miguel@ximian.com 2004-04-15 00:33 -------
+What part is wrong? The patch looks good to me