[Mono-bugs] [Bug 703027] New: Tuple equality with null values
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jun 29 16:15:42 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=703027
https://bugzilla.novell.com/show_bug.cgi?id=703027#c0
Summary: Tuple equality with null values
Classification: Mono
Product: Mono: Runtime
Version: 2.10.x
Platform: x86
OS/Version: Ubuntu
Status: NEW
Severity: Major
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: laurentlb at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1;
Trident/5.0)
Input file:
var a = new Tuple<int, Object>(2, null);
var b = new Tuple<int, Object>(2, null);
Console.WriteLine(a.Equals(b));
Reproducible: Always
Actual Results:
Result on Mono 2.10:
Unhandled Exception: System.ArgumentException: Argument is not compatible
Parameter name: x
at
System.Collections.Generic.EqualityComparer`1[System.Object].System.Collections.IEqualityComparer.Equals
(System.Object x, System.Object y) [0x00000] in <filename unknown>:0
at
System.Tuple`2[System.Int32,System.Object].System.Collections.IStructuralEquatable.Equals
(System.Object other, IEqualityComparer comparer) [0x00000] in <filename
unknown>:0
at System.Tuple`2[System.Int32,System.Object].Equals (System.Object obj)
[0x00000] in <filename unknown>:0
at Test.Main () [0x00000] in <filename unknown>:0
Expected Results:
Expected (what I get on MS .NET):
True
--
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.
More information about the mono-bugs
mailing list