[Mono-bugs] [Bug 622267] New: Cecil can not import generic methods with generic params

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 14 10:18:33 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=622267

http://bugzilla.novell.com/show_bug.cgi?id=622267#c0


           Summary: Cecil can not import generic methods with generic
                    params
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Cecil
        AssignedTo: jbevain at novell.com
        ReportedBy: jaharper at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Attached is a small test case and a patch.  The issue seems to be that when
importing a generic method we call ImportSystemType on each of the parameters,
this sets the context.GenericContext.Type and then the on the next param cecil
is very confused because it things we are dealing with a different type (the
type of the param instead of the object).

I believe the solution is to just not have ImportSystemType set the generic
context type.

-- 
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