[Mono-bugs] [Bug 497116] New: [gmcs] peverify says gmcs emitted assembly contains errors

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 21 19:53:33 EDT 2009


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


           Summary: [gmcs] peverify says gmcs emitted assembly contains
                    errors
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: jbevain at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Repro:

<<<<<<<<
using System;

interface IFoo {
    T GetFoo<T> () where T : class;
}

class Bar<TBar> {

    class Foo<T> : IFoo {

        TProp IFoo.GetFoo<TProp> ()
        {
            return null;
        }
    }
}

class Test {
    static void Main ()
    {
    }
}
<<<<<<<<<

peverify says that Bar/Foo doesn't implement the method GetFoo of IFoo. The
difference between what csc and gmcs emits is the method used as an .override.

csc emits directly the MethodDef from IFoo, while gmcs/SRE emits a generic
MethodRef.

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