comparison test/enum3.d @ 52:0c77619e803b trunk

[svn r56] Initial support for TypeInfo. Enums not work. Several other bugfixes.
author lindquist
date Tue, 23 Oct 2007 05:55:12 +0200
parents
children
comparison
equal deleted inserted replaced
51:61bc1b4ad3c4 52:0c77619e803b
1 module enum3;
2
3 enum GE : ushort
4 {
5 A,B,C
6 }
7
8 void main()
9 {
10 GE e = GE.B;
11 size_t s = GE.sizeof;
12 assert(e == 1);
13 assert(e.sizeof == s);
14 assert(s == 2);
15 }