919
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ <oskar.linde@gmail.com>
|
|
6 // @date@ 2005-03-16
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6684
|
919
|
8
|
|
9 module dstress.run.t.typeof_08_B;
|
|
10
|
|
11 template declare(X){
|
|
12 X declare;
|
|
13 }
|
|
14
|
|
15 typeof(declare!(typeof("abc"w))[0 .. length]) y;
|
|
16
|
|
17 int main(){
|
|
18 static if(!is(typeof(y) == wchar[])){
|
|
19 static assert(0);
|
|
20 }
|
|
21
|
|
22 if(y.length != 0){
|
|
23 assert(0);
|
|
24 }
|
|
25
|
|
26 return 0;
|
|
27 }
|
|
28
|