[Mono-devel-list] bug in mcs: error CS8003: Constant type is not valid
Urs C Muff
umuff at quark.com
Thu Feb 5 18:49:46 EST 2004
public sealed class Test
{
public const string A = "A";
public const string B = "B";
public const string[] ALL = new string[]
{
A,
B,
};
private Test() {}
}
Compiles fine with csc, but mcs fails with:
~Test.cs(10) error CS8003: Constant type is not valid (only system
types are allowed)
Compilation failed: 1 error(s), 0 warnings
BTW: do you want me to file a bug in bugzilla?
- Urs
More information about the Mono-devel-list
mailing list