Mercurial > projects > dstress
view compile/e/enum_46_D.d @ 1104:a9bd4f3bb932
[Issue 250] enum : bool allowed with odd results
James Pelcis <jpelcis@gmail.com>
2006-07-12
news:bug-250-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Tue, 15 Aug 2006 09:45:40 +0000 |
parents | |
children | daef239f37cf |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ James Pelcis <jpelcis@gmail.com> // @date@ 2006-07-12 // @uri@ news:bug-250-3@http.d.puremagic.com/issues/ // @desc@ [Issue 250] enum : bool allowed with odd results module dstress.compile.e.enum_46_D; enum Bool : bool { Unknown = false, False = false, True, } static assert(Bool.False == false); static assert(Bool.True == true); static assert(Bool.Unknown == false);