[Mono-bugs] [Bug 42206][Cos] New - Should emit a warning on Main with wrong signature

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 1 May 2003 10:41:27 -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 gonzalo@ximian.com.

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

--- shadow/42206	Thu May  1 10:41:27 2003
+++ shadow/42206.tmp.14216	Thu May  1 10:41:27 2003
@@ -0,0 +1,33 @@
+Bug#: 42206
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Should emit a warning on Main with wrong signature
+
+When compiling this:
+class C
+{
+        static long Main ()
+        {
+                return 0;
+        }
+}
+
+CSC says:
+xxx.cs(4,21): warning CS0028: 'C.Main()' has the wrong signature to be an
+entry point
+error CS5001: Program 'xxx.exe' does not have an entry point defined
+
+and mcs only issues the error, but not the warning.