annotate run/template_11.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 6e4063f99377
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
223
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
1 // $HeadURL$
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
2 // $Date$
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
3 // $Author$
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
4
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
5 // @author@ Aleksey Bobnev <uw@front.ru>
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
6 // @date@ 2004-12-27
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
7 // @uri@ news:cqp4fk$1dcj$1@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2613
223
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
9
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
10 module dstress.run.template_11;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
11
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
12 template IsArray(T) { static const bool IsArray = false; }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
13 template IsArray(T : T[]) { static const bool IsArray = true; }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
14
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
15 int main(){
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
16 assert(IsArray!(int[])==1);
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
17 assert(IsArray!(int)==0);
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
18 return 0;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
19 }