Mercurial > projects > dstress
view run/t/typeof_08_A.d @ 919:4ed1f9f14948
<oskar.linde@gmail.com>
2005-03-16
news:dvbst8$4ml$1@digitaldaemon.com
author | thomask |
---|---|
date | Sun, 19 Mar 2006 07:38:45 +0000 |
parents | |
children | b8c0195059d9 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <oskar.linde@gmail.com> // @date@ 2005-03-16 // @uri@ news:dvbst8$4ml$1@digitaldaemon.com module dstress.run.t.typeof_08_A; template declare(X){ X declare; } typeof(declare!(typeof(""w))[0 .. length]) y; int main(){ static if(!is(typeof(y) == wchar[])){ static assert(0); } if(y.length != 0){ assert(0); } return 0; }