[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #11419] Bad error message: Enum needs to be deri
From: |
James Michael DuPont |
Subject: |
[Pnet-developers] [bugs #11419] Bad error message: Enum needs to be derived from ValueType, IComparable, IConvertible, IFormattable |
Date: |
Tue, 28 Dec 2004 17:39:37 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 (Debian package 1.0-2) |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #11419] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11419>
Project: DotGNU Portable.NET
Submitted by: James Michael DuPont
On: Tue 12/28/2004 at 17:39
Category: None
Severity: 5 - Average
Item Group: None
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: Bad error message: Enum needs to be derived from ValueType,
IComparable, IConvertible, IFormattable
Original Submission: cscc /nowarn:649 /nowarn:169 -d:INSIDE_CORLIB -d:NET_1_1
-d:ONLY_1_1 -g /noconfig /unsafe /nostdlib /target:library ../../testcase3.c
produces the error :
../../testcase3.cs:19: enumerated value is not constant
When trying to set the value of an enum.
the error is misleading.
------------------------------------------
namespace System
{
public class Object
{
}
public class ValueType
{
}
public interface IComparable { }
public interface IConvertible { }
public interface IFormattable { }
public abstract class Enum// : ValueType, IComparable, IConvertible,
IFormattable
{
}
public enum AttributeTargetstest
{
test,
test2=0x000032, //../../testcase3.cs:19: enumerated value is
not constant
All
}
}
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11419>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [bugs #11419] Bad error message: Enum needs to be derived from ValueType, IComparable, IConvertible, IFormattable,
James Michael DuPont <=