# HG changeset patch # User thomask # Date 1171447925 0 # Node ID 69d5079a38aa2f7ddf2ee9469fa5e35ff58f7cf8 # Parent 68bba8897adb5321729a6a60a46b235d8dca0b21 [Issue 775] array literals can't be used as template arguments Thomas K?hne 2006-12-30 http://d.puremagic.com/issues/show_bug.cgi?id=775 diff -r 68bba8897adb -r 69d5079a38aa compile/t/tuple_14_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/t/tuple_14_A.d Wed Feb 14 10:12:05 2007 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kühne +// @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"]);