view run/template_11.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents 9603ea1557fc
children 52c9e86b6486
line wrap: on
line source

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

// @author@	Aleksey Bobnev <uw@front.ru>
// @date@	2004-12-27
// @uri@	news:cqp4fk$1dcj$1@digitaldaemon.com
// @url@	nntp://digitalmars.com/digitalmars.D.bugs/2613

module dstress.run.template_11;

template IsArray(T)        { static const bool IsArray = false; }
template IsArray(T : T[])  { static const bool IsArray = true; }

int main(){
	assert(IsArray!(int[])==1);
	assert(IsArray!(int)==0);
	return 0;
}