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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to