changeset 1551:7f8c2e529d37

[Issue 963] tuples & array literals: Error: non-constant expression ["abc","1"] Thomas K?hne <thomas-dloop@kuehne.cn> 2007-02-15 http://d.puremagic.com/issues/show_bug.cgi?id=963
author thomask
date Mon, 23 Jul 2007 18:42:38 +0000
parents f46f0b6ed2d1
children f107f5bcb3fe
files compile/t/tuple_26_A.d
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/t/tuple_26_A.d	Mon Jul 23 18:42:38 2007 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kühne <thomas-dloop@kuehne.cn>
+// @date@	2007-02-15
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=963
+// @desc@	[Issue 963] tuples & array literals: Error: non-constant expression ["abc","1"]
+
+module dstress.compile.t.tuple_26_A;
+
+template A(T ...){
+	const A = T[0]; 
+}
+
+mixin A!(["abc", "1"]);