Mercurial > projects > dstress
view compile/t/tuple_14_A.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | 69d5079a38aa |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kühne <thomas-dloop@kuehne.cn> // @date@ 2006-12-30 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=775 // @desc@ [Issue 775] array literals can't be used as template arguments module dstress.compile.t.tuple_14_A; template A(T ...){ static assert(1 == T.length); static assert(2 == T[0].length); static assert("abc" == T[0][0]); static assert("123" == T[0][1]); } mixin A!(["abc", "123"]);