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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Feb 2005 02:40:45 -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-30 14:32:40.000000000 -0500
+++ shadow/71013.tmp.4870	2005-02-16 02:40:45.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 71013
 Product: Mono: Compilers
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: NOTABUG
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Critical
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tsureshkumar@novell.com               
 QAContact: mono-bugs@ximian.com
@@ -79,6 +79,55 @@
 
 There is no way of choosing which method to call: getme (int) or
 getme (K)
 
 If you have a sample that we misscompile of unification compared
 to CSC, please reopen this bug.
+
+------- Additional Comments From tsureshkumar@novell.com  2005-02-16 02:40 -------
+hey miguel,
+
+ I again tried the below sample with print statements, csc seems to be
+resolving to non generic method first. but, gmcs 1.1.3.0 seems to be
+giving the same error as above. I'm not sure about what spec says
+about this.
+
+// <snip>
+using System;
+using System;
+using System.Collections.Generic;
+                                                                     
+                                                                     
+                 
+                                                                     
+                                                                     
+                 
+public class TestMe <K>
+{
+        public void getme (K a) { Console.WriteLine ("getme 1"); }
+        public int getme (int a) {  Console.WriteLine ("getme 2");
+return -1;}
+}
+                                                                     
+                                                                     
+                 
+                                                                     
+                                                                     
+                 
+                                                                     
+                                                                     
+                 
+                                                                     
+                                                                     
+                 
+public class MainClass
+{
+        public static void Main (string [] args)
+        {
+                TestMe <int> a = new TestMe <int> ();
+                a.getme (10);
+        }
+}
+// </snip>
+
+Thanks,
+Suresh.