Bug 313454 (MONO52507) - [PATCH] We report CS0145 as a parser error
Summary: [PATCH] We report CS0145 as a parser error
Status: RESOLVED FIXED
Alias: MONO52507
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-23 21:29 UTC by Ben Maurer
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed patch (1.99 KB, patch)
2003-12-24 03:50 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:22:50 UTC


---- Reported by bmaurer@users.sf.net 2003-12-23 14:29:19 MST ----

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:51 MST ----

Created an attachment (id=165387)
proposed patch




---- Additional Comments From bmaurer@users.sf.net 2003-12-23 21:16:50 MST ----

<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:28 MST ----

What part is wrong?  The patch looks good to me



---- Additional Comments From bmaurer@users.sf.net 2004-04-15 00:38:40 MST ----

No idea,

Benjamin?



---- Additional Comments From bmaurer@users.sf.net 2004-06-01 23:42:59 MST ----

Benjamin, Ping?



---- Additional Comments From marek.safar@seznam.cz 2004-06-24 04:19:42 MST ----

Fixed in CVS

Imported an attachment (id=165387)

Unknown operating system unknown. Setting to default OS "Other".