Mercurial > projects > ddmd
diff dmd/TypeSArray.d @ 154:14feb7ae01a6
* changed the build system to build a release version if the debug one compiles
and enabled warnings
+ reduced warnings by adding appriopriate overrides
+ IfStatement.interpret()
+ ScopeStatement.interpret()
+ TypeSArray.constConv()
+ TypedefDeclaration.syntaxCopy()
* fixed a bug in StringExp
author | trass3r |
---|---|
date | Wed, 15 Sep 2010 15:32:31 +0200 |
parents | af1bebfd96a4 |
children | 438eaa11eed4 |
line wrap: on
line diff
--- a/dmd/TypeSArray.d Wed Sep 15 03:58:55 2010 +0200 +++ b/dmd/TypeSArray.d Wed Sep 15 15:32:31 2010 +0200 @@ -355,7 +355,13 @@ override MATCH constConv(Type to) { - assert(false); + if (to.ty == Tsarray) + { + TypeSArray tsa = cast(TypeSArray)to; + if (!dim.equals(tsa.dim)) + return MATCHnomatch; + } + return super.constConv(to); } override MATCH implicitConvTo(Type to)