Mercurial > projects > ldc
annotate test/enum2.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 |
rev | line source |
---|---|
lindquist@52 | 1 module enum2; |
lindquist@52 | 2 |
lindquist@52 | 3 void main() |
lindquist@52 | 4 { |
lindquist@52 | 5 enum E { |
lindquist@52 | 6 A,B |
lindquist@52 | 7 } |
lindquist@52 | 8 E e = E.B; |
lindquist@52 | 9 assert(e == E.B); |
lindquist@52 | 10 } |