[Mono-bugs] [Bug 52507][Wis] New - We report CS0145 as a parser error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 14:29:20 -0500 (EST)


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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52507

--- shadow/52507	2003-12-23 14:29:20.000000000 -0500
+++ shadow/52507.tmp.4688	2003-12-23 14:29:20.000000000 -0500
@@ -0,0 +1,27 @@
+Bug#: 52507
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: 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