[Mono-bugs] [Bug 538801] New: Object initializer for generic type generates invalid IL
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Sep 12 17:57:12 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=538801
Summary: Object initializer for generic type generates invalid
IL
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: x86-64
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: tegansblueworld at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=317995)
--> (http://bugzilla.novell.com/attachment.cgi?id=317995)
Sample code
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
When using type initializer syntax to initialize a generic member, compilation
succeeds but there is an invalid IL error when trying to run the output.
Reproducible: Always
Steps to Reproduce:
1. Compile attached code (mcs version 2.4.2.3)
2. Execute the output
Actual Results:
Error output:
Unhandled Exception: System.InvalidProgramException: Invalid IL code in
InvalidILDemo.MyGenericClass`1<InvalidILDemo.GenericImplementation>:.ctor ():
IL_003a: ret
at InvalidILDemo.MainClass.Main (System.String[] args) [0x00000] in
/Users/username/Documents/InvalidILDemo/InvalidILDemo/Main.cs:1
Expected Results:
Code compiles and runs without error with .NET compiler on Windows.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list