Mercurial > projects > dstress
annotate run/t/typeof_08_C.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 785c8eaa48b4 |
children |
rev | line source |
---|---|
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_C; | |
10 | |
11 typeof("abc"w) y; | |
12 | |
13 int main(){ | |
1126 | 14 static if(!is(typeof(y) == wchar[3])){ |
919 | 15 static assert(0); |
16 } | |
17 | |
1126 | 18 if(y.length != 3){ |
919 | 19 assert(0); |
20 } | |
21 | |
22 return 0; | |
23 } | |
24 |