view nocompile/m/mixin_34_A.d @ 1618:87a6ab8f478d

Returns of non-void expressions are no longer valid in void functions.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:48:11 +0100
parents b3b959a6ff7b
children
line wrap: on
line source

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

// @author@	Alex <CppCoder@gmail.com>
// @date@	2007-04-14
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1144
// @desc@	[Issue 1144] template mixin causes DMD crash

// __DSTRESS_ELINE__ 16

module dstress.nocompile.m.mixin_34_A;

char[] testHelper(A ...)(){
	char[] result;
	foreach(t; a){
		result ~= "int " ~ t ~ ";\n";
	}
	return result;
}

int main(){
	mixin( testHelper!( "hello", "world" )() );
	return 0;
}