Mercurial > projects > dstress
view run/template_11.d @ 1383:52c9e86b6486
@url@ -> @uri@
author | thomask |
---|---|
date | Sun, 04 Mar 2007 13:07:35 +0000 |
parents | 9603ea1557fc |
children | 6e4063f99377 |
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 // @uri@ 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; }