view compile/t/template_59_A.d @ 1622:d402aa53926c

Add test for bug 3092 written by Manuel K?nig
author Leandro Lucarella <llucax@gmail.com>
date Tue, 19 Oct 2010 19:18:23 -0300
parents cb9bda7ca830
children
line wrap: on
line source

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

// @author@	Lionello Lunesu <lio@lunesu.com>
// @date@	2007-02-12
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1054
// @desc@	[Issue 1054] Recursive templates with values, Error: T is used as a type

module dstress.compile.t.template_59_A;

template Foo( char c ) {
	const Foo = c;
}

template Bar(char[] T, int F ){
	const Bar = Foo!(T[F]);
}

static assert('s' == Bar!("asd",1) );