Mercurial > projects > dstress
view compile/o/opEquals_06_E.d @ 1209:1fb137179022
[Issue 479] New: can't compare arrayliteral statically with string
Nazo Humei <lovesyao@hotmail.com>
2006-11-04
news:bug-479-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Wed, 08 Nov 2006 15:23:40 +0000 |
parents | |
children | daef239f37cf |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Nazo Humei <lovesyao@hotmail.com> // @date@ 2006-11-04 // @uri@ news:bug-479-3@http.d.puremagic.com/issues/ // @desc@ [Issue 479] New: can't compare arrayliteral statically with string module dstress.compile.o.opEquals_06_E; const char[] str = "abcd"; static if(str == ['a','b','c','d']){ // OK }else{ static assert(0); }