223
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Aleksey Bobnev <uw@front.ru>
|
|
6 // @date@ 2004-12-27
|
|
7 // @uri@ news:cqp4fk$1dcj$1@digitaldaemon.com
|
1487
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2613
|
223
|
9
|
|
10 module dstress.run.template_10;
|
|
11
|
|
12 import addon.template_10_typelist;
|
|
13
|
|
14 template IsArray(T) { static const bool IsArray = false; }
|
|
15 template IsArray(T : T[]) { static const bool IsArray = true; }
|
|
16
|
|
17 int main(){
|
|
18 assert(IsArray!(int[])==1);
|
|
19 assert(IsArray!(int)==0);
|
|
20 return 0;
|
|
21 } |