view compile/o/opCat_23_A.d @ 1144:afe5081510a3

[Issue 352] New: Assertion failure: expression.c 753 - concatenating strings in a template calling another template Stewart Gordon <smjg@iname.com> 2006-09-16 news:bug-352-3@http.d.puremagic.com/issues/
author thomask
date Wed, 20 Sep 2006 19:11:12 +0000
parents
children daef239f37cf
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Stewart Gordon <smjg@iname.com>
// @date@	2006-09-16
// @uri@	news:bug-352-3@http.d.puremagic.com/issues/
// @desc@	[Issue 352] New: Assertion failure: expression.c 753 - concatenating strings in a template calling another template
 
module dstress.compile.o.opCat_23_A;

template A(char[] x){
	const char[] A = x;
}

template B(char[] y){
	const char[] B = A!(y ~ "dog");
}

const char[] s = B!("CAT");

static assert(s == "CATdog");