[Mono-bugs] [Bug 71325][Wis] New - Constructor call of generic type emitted using SRE uses noninstanciated type

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 15 Jan 2005 15:46:39 -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 nazgul@omega.pl.

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

--- shadow/71325	2005-01-15 15:46:39.000000000 -0500
+++ shadow/71325.tmp.3807	2005-01-15 15:46:39.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 71325
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: Mandrake Linux 10.1, mono from svn HEAD
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: nazgul@omega.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Constructor call of generic type emitted using SRE uses noninstanciated type
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Emitting constructor from instanciated generic type results in code using
+noninstanciated version of type.
+
+Steps to reproduce the problem:
+1. Compile attached program
+2. Run it
+3. monodis bla.dll
+
+Actual Results:
+...
+ IL_0006:  newobj instance void class
+[mscorlib]System.Collections.Generic.'List`1'::.ctor()
+...
+
+Expected Results:
+  IL_0006:  newobj     instance void class
+[mscorlib]System.Collections.Generic.'List`1'<int32>::.ctor()
+
+(produced by MS.NET)
+
+How often does this happen? 
+Always
+
+Additional Information:
+The example program is the same as 
+http://bugzilla.ximian.com/show_bug.cgi?id=71324
+but instanciated type List<int> is used instead of binding TypeBuilder's type.