annotate run/t/typeof_08_B.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 4ed1f9f14948
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
919
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
1 // $HeadURL$
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
2 // $Date$
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
3 // $Author$
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
4
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
5 // @author@ <oskar.linde@gmail.com>
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
6 // @date@ 2005-03-16
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 919
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6684
919
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
8
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
9 module dstress.run.t.typeof_08_B;
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
10
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
11 template declare(X){
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
12 X declare;
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
13 }
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
14
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
15 typeof(declare!(typeof("abc"w))[0 .. length]) y;
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
16
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
17 int main(){
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
18 static if(!is(typeof(y) == wchar[])){
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
19 static assert(0);
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
20 }
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
21
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
22 if(y.length != 0){
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
23 assert(0);
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
24 }
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
25
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
26 return 0;
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
27 }
4ed1f9f14948 <oskar.linde@gmail.com>
thomask
parents:
diff changeset
28