[Mono-bugs] [Bug 37107][Nor] New - When using casts in enum declarations, mcs trow an error that csc dont (CS1008)
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 23 Jan 2003 01:57:42 -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 kiwnix@yahoo.es.
http://bugzilla.ximian.com/show_bug.cgi?id=37107
--- shadow/37107 Thu Jan 23 01:57:42 2003
+++ shadow/37107.tmp.4381 Thu Jan 23 01:57:42 2003
@@ -0,0 +1,44 @@
+Bug#: 37107
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: CVS HEAD
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: kiwnix@yahoo.es
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: When using casts in enum declarations, mcs trow an error that csc dont (CS1008)
+
+Description of Problem:
+When using casts in enum declarations, mcs trow an error that csc dont (CS1008)
+
+
+Steps to reproduce the problem:
+Test Case:
+namespace test1
+{
+ public enum Test2
+ {
+ VALUE1 = (int)'a',
+ VALUE2 = (int)'b',
+ VALUE3 = (int)'c'
+ }
+}
+
+Actual Results:
+
+1.cs(6) error CS1008: Type byte, sbyte, short, ushort, int, uint, long, or
+ulong expected (have: Mono.CSharp.EmptyCast)
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+
+No errors