view compile/t/template_43_A.d @ 1121:48006b92f2b7

[Issue 296] New: Template constant can not be used as size of static array. Oskar Linde <oskar.linde@gmail.com> 2006-08-19 news:bug-296-3@http.d.puremagic.com/issues/
author thomask
date Sat, 26 Aug 2006 11:05:13 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Oskar Linde <oskar.linde@gmail.com>
// @date@	2006-08-19
// @uri@	news:bug-296-3@http.d.puremagic.com/issues/
// @desc@	[Issue 296] New: Template constant can not be used as size of static array.

module dstress.compile.t.template_43_A;

template Count(){
	const int Count = 5;
}

int[Count!()] x; 

static assert(x.length != 5);