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


           Summary: System.Security.VerificationException: Incompatible type
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


I compiled the following program, and ran it with mono --verify-all.  It
complains:

Unhandled Exception: System.Security.VerificationException: Incompatible type
[Complex], type [Complex] was expected in local store at 0x0005
  at B.Main (System.String[] args) [0x00000] 



public class MyException<T> : System.Exception
{
}

public class A<T>
{
    public void F()
    {
        try
        {
        }
        catch(MyException<T> ex)
        {
            System.Console.WriteLine(ex.ToString());
        }
    }
}

public class B
{
    public static void Main(string[] args)
    {
        A<string> a = new A<string>();
        a.F();
    }
}


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

Reply via email to