[Mono-bugs] [Bug 76389][Nor] New - Disassembling fails with simple generics program

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 9 15:08:17 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 miguel at ximian.com.

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

--- shadow/76389	2005-10-09 15:08:17.000000000 -0400
+++ shadow/76389.tmp.24719	2005-10-09 15:08:17.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 76389
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: IL assembler
+AssignedTo: jankit at novell.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Disassembling fails with simple generics program
+
+The folowing program can not be disassembled by Mono, use gmcs to compile:
+
+using System;
+using System.Collections.Generic;
+
+class Demo<T> {
+        T variable;
+
+        public Demo (T x)
+        {
+                variable = x;
+        }
+
+        public void Pinta ()
+        {
+                Console.WriteLine ("El valor es: {0} y el tipo es: {1}",
+variable, variable.GetType ());
+        }
+}
+
+class X {
+        static void Main ()
+        {
+                List<object> a = new List<object> ();
+                a.Add (1);
+                a.Add ("hola");
+        }
+}


More information about the mono-bugs mailing list