Mercurial > projects > ddmd
diff dmd/CastExp.d @ 12:832f71e6f96c
*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete)
Some unittest-specific functions implemented
author | korDen |
---|---|
date | Mon, 12 Apr 2010 15:13:00 +0400 |
parents | 10317f0c89a5 |
children | a8b50ff7f201 |
line wrap: on
line diff
--- a/dmd/CastExp.d Wed Mar 31 16:29:36 2010 +0400 +++ b/dmd/CastExp.d Mon Apr 12 15:13:00 2010 +0400 @@ -378,12 +378,24 @@ void buildArrayIdent(OutBuffer buf, Expressions arguments) { - assert(false); + Type tb = type.toBasetype(); + if (tb.ty == Tarray || tb.ty == Tsarray) + { + e1.buildArrayIdent(buf, arguments); + } + else + Expression.buildArrayIdent(buf, arguments); } Expression buildArrayLoop(Arguments fparams) { - assert(false); + Type tb = type.toBasetype(); + if (tb.ty == Tarray || tb.ty == Tsarray) + { + return e1.buildArrayLoop(fparams); + } + else + return Expression.buildArrayLoop(fparams); } static int X(int fty, int tty) {