[Mono-bugs] [Bug 462592] Generic proxies have wrong schematic
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jan 5 12:10:33 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=462592
User rkumpera at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462592#c4
Rodrigo Kumpera <rkumpera at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rkumpera at novell.com
Component|generics |C#
Product|Mono: Runtime |Mono: Compilers
Target Milestone|--- |SVN
--- Comment #4 from Rodrigo Kumpera <rkumpera at novell.com> 2009-01-05 10:10:32 MST ---
This is a compiler issue as gmcs generates bad code for
testcase.IInitializationExpression.AddRegistry<T>.
Let's look at what csc and gmcs generates:
//csc
method privatescope virtual hidebysig newslot instance default void
testcase.IInitializationExpression.AddRegistry<T> (int32 i) cil managed
//gmcs
method private virtual hidebysig newslot instance default void
testcase.IInitializationExpression.AddRegistry<T> (int32 A_1) cil managed
The visibility is not the same.
//csc
IL_0002: call instance void class
['gtest-434-lib']testcase.ConfigurationExpression::AddRegistry<!!0> (int32)
//gmcs
IL_0002: call instance void class
['gtest-434-lib']testcase.ConfigurationExpression::AddRegistry <[1]>(int32)
GMCS is inflating the method with the wrong type generic arguments.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list