[Mono-bugs] [Bug 71013][Cri] New - generic signatures complains error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 5 Jan 2005 03:12:55 -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 tsureshkumar@novell.com.

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

--- shadow/71013	2005-01-05 03:12:55.000000000 -0500
+++ shadow/71013.tmp.1857	2005-01-05 03:12:55.000000000 -0500
@@ -0,0 +1,70 @@
+Bug#: 71013
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tsureshkumar@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: generic signatures complains error
+
+Description of Problem:
+not compiling generic types
+
+Steps to reproduce the problem:
+1. compile the below program gmcs test.cs
+
+using System;
+using System;
+using System.Collections.Generic;
+                                                                          
+                                                  
+public class TestMe <K>
+{
+        void getme (K a) {}
+        int getme (int a) { return -1;}
+}
+                                                                          
+                                                  
+                                                                          
+                                                  
+public class MainClass
+{
+                                                                          
+                                                  
+        public static void Main (string [] args) {}
+}
+ 
+
+Actual Results:
+test.cs(7) error CS0408: `TestMe<K>' cannot define overload members that
+may unify for some type parameter substitutions
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+compilation succeded
+
+How often does this happen? 
+always
+
+Additional Information:
+
+ gmcs --version
+Mono C# compiler version 1.1.2.0
+
+ mono --version
+Mono JIT compiler version 1.1.3, (C) 2002-2004 Novell, Inc and
+Contributors. www.go-mono.com
+        TLS:           normal
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: none