[Mono-dev] Enums of allowed types produces error

William Lahti xfurious at gmail.com
Sat Aug 26 04:36:43 EDT 2006


Using mono 1.1.13.1, mcs fails with CS1008 (Type byte, sbyte, short, ushort,
int, uint, long or ulong expected) when specifying the fully qualified class
name for any of the types byte, sbyte, etc.

Is this a bug (like I think) or does C# not allow such usage?

This testcase shows the issue nicely:

public enum myEnum: System.Int32 {
        bad, cool
}

compiled with: mcs source.cs /target:library
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060826/63ff8e94/attachment.html 


More information about the Mono-devel-list mailing list