[Mono-list] error CS0150: A constant value is expected
Paolo Molaro
lupus at ximian.com
Mon Aug 8 10:53:25 EDT 2005
On 08/08/05 red forks wrote:
> The code is:
>
> const TypeByte EmptyTypeByte = TypeByte.Min - 1;
>
> TypeBye is an enum, TypeByte is defined:
>
> internal enum TypeByte : byte
> {
> Min = Byte,
> Byte = 1,
[...]
> Don't why? Its ok under Microsoft .Net. Does enum is not constant?
Filed as http://bugzilla.ximian.com/show_bug.cgi?id=75746.
See bugzilla.ximian.com for filing bug reports.
Thanks.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-list
mailing list