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