[Mono-bugs] [Bug 687269] New: Invalid Incompatible return value on stack with method signature ret at 0x0001

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 13 11:20:25 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=687269

https://bugzilla.novell.com/show_bug.cgi?id=687269#c0


           Summary: Invalid Incompatible return value on stack with method
                    signature ret at 0x0001
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: verifier
        AssignedTo: rkumpera at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Compile & Run with verifier enabled

using System.Collections.Generic;

class Test
{
    static U[] Foo<T, U> (T[] arg) where T : class, U
    {
        return arg;
    }

    static int Main ()
    {
        foreach (var e in Foo<string, object> (new string[] { "as" }))
        {
        }

        return 0;
    }
}


mono --verify-all a.exe 

Unhandled Exception: System.Security.VerificationException: Error verifying 
Test:Foo<T, U> (T[]): Incompatible return value on stack with method signature
ret at 0x0001
  at Test.Main () [0x00000] in <filename unknown>:0

-- 
Configure bugmail: https://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