[Mono-bugs] [Bug 60324][Maj] Changed - Exception when compiling decimal class
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Jul 2004 17:52:39 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by jluke@cfl.rr.com.
http://bugzilla.ximian.com/show_bug.cgi?id=60324
--- shadow/60324 2004-07-18 17:49:56.000000000 -0400
+++ shadow/60324.tmp.21975 2004-07-18 17:52:39.000000000 -0400
@@ -93,6 +93,27 @@
------- Additional Comments From jluke@cfl.rr.com 2004-07-18 17:49 -------
Created an attachment (id=8625)
patch to prevent the exception
+
+------- Additional Comments From jluke@cfl.rr.com 2004-07-18 17:52 -------
+The above adds a DecimalConstant to ecore.cs Constantify for returning
+the constant.
+
+We still get this:
+t.cs(7) error CS0029: Cannot convert implicitly from `decimal' to `int'
+t.cs(7) error CS0029: Cannot convert implicitly from `decimal' to `int'
+
+for a simpler test case of this:
+using System;
+
+class T
+{
+ static void Main ()
+ {
+ Console.WriteLine (6M - 3M);
+ }
+}
+
+which baffles me so far why it thinks int is involved at all