mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
16 lines
173 B
D
16 lines
173 B
D
module enum3;
|
|
|
|
enum GE : ushort
|
|
{
|
|
A,B,C
|
|
}
|
|
|
|
void main()
|
|
{
|
|
GE e = GE.B;
|
|
size_t s = GE.sizeof;
|
|
assert(e == 1);
|
|
assert(e.sizeof == s);
|
|
assert(s == 2);
|
|
}
|