mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-09 17:04:12 +02:00
Updated to dmdfe 2.051
This commit is contained in:
@@ -91,7 +91,9 @@ bool isArrayOpValid(Expression *e)
|
||||
Expression *BinExp::arrayOp(Scope *sc)
|
||||
{
|
||||
|
||||
if (type->toBasetype()->nextOf()->toBasetype()->ty == Tvoid)
|
||||
Type *tb = type->toBasetype();
|
||||
assert(tb->ty == Tarray || tb->ty == Tsarray);
|
||||
if (tb->nextOf()->toBasetype()->ty == Tvoid)
|
||||
{
|
||||
error("Cannot perform array operations on void[] arrays");
|
||||
return new ErrorExp();
|
||||
|
||||
Reference in New Issue
Block a user