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


           Summary: bug in System.Decimal
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs@lists.ximian.com
        ReportedBy: [EMAIL PROTECTED]
         QAContact: mono-bugs@lists.ximian.com
          Found By: ---


The following testcase throws an exception under mono. Under MS.NET it is
accepted as valid:

using System;

public class Test
{
    public static void Main (string[] args)
    {
        Decimal d = new decimal(new int[] { 5400000, 0, 0, 10000000, 10000000,
10000000, 0});
    }
}


Exception:

 System.ArgumentException: bits does not contain four values
  at System.Decimal..ctor (System.Int32[] bits) [0x00000] 
  at Test.Main (System.String[] args) [0x00000]


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