view nocompile/t/template_48_A.d @ 1488:1ee9a0dd42d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 12:29:50 +0000
parents 672b0632b05c
children
line wrap: on
line source

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

// @author@	rm <roel.mathys@gmail.com>
// @date@	2006-10-04
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=D.gnu&artnum=2134
// @desc@	infinite loop in gdc-0.19 with tempaltes

// __DSTRESS_ELINE__ 19

module dstress.nocompile.t.template_48_A;

template TFoo(int v : 1){
	const int TFoo = 1;
}

template TFoo(int v){
	const int TFoo = v * TFoo!(v-1).TFoo;
}

static assert(TFoo!(4) == 24);