[Mono-bugs] [Bug 385058] New: Compilation failure on ambiguity

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 29 23:17:48 EDT 2008


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


           Summary: Compilation failure on ambiguity
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: harinath at hurrynot.org
        ReportedBy: miguel at novell.com
         QAContact: mono-bugs at lists.ximian.com
                CC: msafar at novell.com
          Found By: ---


The following test case was extracted from DotNetOpenID project, and currently
prevents its compilation:

using System;

public class Identifier {
        public Identifier () {}

        public static bool operator ==(Identifier id1, Identifier id2)  {
return true; }
        public static bool operator !=(Identifier id1, Identifier id2) { return
true; }

        public static implicit operator Identifier(string identifier)
        {
                return null;
        }

        public static implicit operator String (Identifier id)
        {
                return null;
        }

        static void Main ()
        {
                Identifier a = null;
                string b = null;

                if (a == b ^ a == b)
                        ;
        }

}


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