[Mono-bugs] [Bug 58571][Nor] New - we do not report CS1008 for enum base types that are system types matching C# integral types
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 16 May 2004 08:10:29 -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 gert.driesen@pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=58571
--- shadow/58571 2004-05-16 08:10:29.000000000 -0400
+++ shadow/58571.tmp.29761 2004-05-16 08:10:29.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 58571
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gert.driesen@pandora.be
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: we do not report CS1008 for enum base types that are system types matching C# integral types
+
+MCS currently does report an error when compiling an enum of a type
+corresponding with one of the c# integral types.
+
+For example, this is considered valid by MCS :
+
+public enum TestEnum : System.Int16
+{
+ One
+}
+
+But csc reports the following error :
+
+error CS1008: Type byte, sbyte, short, ushort, int, uint, long, or
+ulong expected
+
+Apparently CSC does not automatically translate system types to C#
+integral types, which could be considered a bug in CSC. But to prevent
+issues when compiling code on CSC, I think its best to change MCS
+behaviour accordingly.