[Mono-bugs] [Bug 76382][Nor] Changed - [GMCS] differentiate generic arguments on method return types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 9 06:23:41 EDT 2005


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 atsushi at ximian.com.

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

--- shadow/76382	2005-10-09 04:25:17.000000000 -0400
+++ shadow/76382.tmp.17503	2005-10-09 06:23:41.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 76382
 Product: Mono: Compilers
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: atsushi at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -48,6 +48,42 @@
 
 no error (except for entrypoint not found).
 
 How often does this happen? 
 
 consistently.
+
+------- Additional Comments From atsushi at ximian.com  2005-10-09 06:23 -------
+With the experiment below, I guess this is a compiler problem.
+
+--------
+using System;
+
+public class Test
+{
+        public Ret ret;
+
+        public static void Main ()
+        {
+                Type t1 = typeof (Test).GetField ("ret").FieldType;
+                Type t2 = typeof (Ret<int>).GetGenericTypeDefinition ();
+                Console.WriteLine (t1 == t2);
+                Console.WriteLine (t1);
+                Console.WriteLine (t2.GetGenericTypeDefinition ());
+        }
+}
+
+public interface Ret { }
+public interface Ret<T> {}
+
+----
+
+$ mono gentypes.exe
+False
+Ret
+Ret`1[T]
+
+$ ./gentypes
+False
+Ret
+Ret`1[T]
+


More information about the mono-bugs mailing list