[Mono-bugs] [Bug 72930][Cos] Changed - CS0133 not reported for const fields of type object

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Mar 2005 04:02:28 -0500 (EST)

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 marek.safar@seznam.cz.


--- shadow/72930	2005-02-25 16:34:17.000000000 -0500
+++ shadow/72930.tmp.29146	2005-03-02 04:02:28.000000000 -0500
@@ -10,13 +10,13 @@
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: nazgul@omega.pl               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
-Cc: miguel@ximian.com,rharinath@novell.com
+Cc: marek.safar@seznam.cz,miguel@ximian.com,rharinath@novell.com
 Summary: CS0133 not reported for const fields of type object
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem:
 CS0133 should be reported when constant field of type object is being
@@ -121,6 +121,11 @@
 defaultValue is restricted to the following types: Boolean, SByte,
 Int16, Int32, Int64, Byte, UInt16, UInt32, UInt64, Single, Double,
 DateTime, Char, String, and Enum. If the type of the field is Decimal
 or Object, defaultValue can only be null.
+------- Additional Comments From marek.safar@seznam.cz  2005-03-02 04:02 -------
+This is the limitation of SetConstant method.
+Decimal is supported as contant type by csc and mcs as well.