Mercurial > projects > dstress
view compile/e/enum_48_C.d @ 1320:daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:59:08 +0000 |
parents | 90cf22616882 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Stewart Gordon <smjg@iname.com> // @date@ 2006-09-15 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=349 // @desc@ [Issue 349] New: Function matching with enums is erratic module dstress.compile.e.enum_48_C; enum E : uint{ A = 1 } template T(uint a){ const uint T = a + 1; } template T(E e){ const E T = e; } static assert(T!(1) == 2);