Mercurial > projects > dstress
view run/e/enum_42_D.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 9dcac8d4e97f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> // @date@ 2005-11-04 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5307 module dstress.run.e.enum_42_D; enum E : ushort{ A = 1, B = 2, C = 3 } int main(){ ushort[] array; E e = E.B; array ~= e; assert(array.length==1); assert(array[0]==E.B); return 0; }