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


           Summary: Nullable and user-defined operator
    Classification: Mono
           Product: Mono: Compilers
           Version: unspecified
          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: ---


This should compile and run without error/exception.

using System;

struct S
{
    public static void Main ()
    {
        S? s = null;
        A a = s;
        B b = (B) s;
    }
}

class A
{
    public static implicit operator A (S x)
    {
        return new B ();
    }
}

class B : A
{
}


- Will probably have to create LiftedUserOperator to emit EmitCheck.
- How does it work with ET?

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