Comment #0 by tim.matthews7 — 2009-06-26T21:43:53Z
from: http://digitalmars.com/d/2.0/enum.html
"If the EnumBaseType is not explicitly set, and the first EnumMember has an initializer, it is set to the type of that initializer. Otherwise, it defaults to type int."
module test;
enum LongEnum
{
SomeLong = 2147772029 //initializer
}
void main()
{
}
test.d(5): Error: cannot implicitly convert expression (2147772029L) of type long to int