[Mono-bugs] [Bug 24856] New - Weird error message when typing Public instead of public in the Main () line

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
17 May 2002 00:31:46 -0000


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 kenneth@gnu.org.

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

--- shadow/24856	Thu May 16 20:31:46 2002
+++ shadow/24856.tmp.1879	Thu May 16 20:31:46 2002
@@ -0,0 +1,39 @@
+Bug#: 24856
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: kenneth@gnu.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Weird error message when typing Public instead of public in the Main () line 
+
+when you use Public instead of public in the Main () line you get this
+error message using the MSFT compiler:
+
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+HelloWorld.cs(5,9): error CS1585: Member modifier 'static' must
+precede the member type and name
+
+but with mono I get:
+
+mcs HelloWorld.cs
+syntax error, expecting OPERATOR THIS OPEN_BRACKET OPEN_PARENS DOT STAR
+IDENTIFIER
+HelloWorld.cs (5,16), Token:321   : Parsing error
+Mono.CSharp.yyParser.yyException
+irrecoverable syntax errorMono.CSharp.yyParser.yyExceptionin 0x00dc9
+Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)
+
+error CS5001: Program HelloWorld.exe does not have an entry point defined
+RESULT: 1