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


           Summary: nullable decimal comparison failure
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: x86-64
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs@lists.ximian.com
        ReportedBy: webservi...@landmarkdigital.com
         QAContact: mono-bugs@lists.ximian.com
          Found By: Development



WebServices Group <webservi...@landmarkdigital.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
               Flag|                                                
|SHIP_STOPPER?


When comparing a nullable decimal set to null to a nullable decimal set to a
number, the result in mono 2.2 is always true.  I verified in Mono 1.9.1 and
Visual Studio 2005 SP1 that the result should be false.  This is a fundamental
problem.

Code Sample:

            decimal? D1 = null;
            decimal? D2 = 7;


            if (D1 == D2)
            {
                Console.WriteLine("null == 7  incorrect");
            }
            else if (D1 != D2)
            {
                Console.WriteLine("null != 7  correct");
            }


-- 
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  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to