[Mono-bugs] [Bug 79709][Wis] New - CS5001 error when compiling generic class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 20 16:32:44 EDT 2006


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 steve_merel at playstation.sony.com.

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

--- shadow/79709	2006-10-20 16:32:44.000000000 -0400
+++ shadow/79709.tmp.14206	2006-10-20 16:32:44.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 79709
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: SUSE 10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: steve_merel at playstation.sony.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS5001 error when compiling generic class
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Compiling the code below with gmcs gives this error:
+
+error CS5001: Program `test.exe' does not contain a static `Main' method
+suitable for an entry point
+
+------------------------------
+
+public class Multimap<Key,Value>
+{
+   public static void Main()
+   {
+   }
+}
+
+---------------------------------
+If I comment out the "<Key,Value>", it compiles correctly.


More information about the mono-bugs mailing list