# HG changeset patch # User ChristianK # Date 1216049218 -7200 # Node ID 9c9544fd769d70a66029edc6cd7a44c215d4d54e # Parent 926f65e39246fe845702ed8561442f9a3266ccf1 [svn r381] Allow concatenating with static arrays. diff -r 926f65e39246 -r 9c9544fd769d gen/arrays.cpp --- a/gen/arrays.cpp Mon Jul 14 17:22:43 2008 +0200 +++ b/gen/arrays.cpp Mon Jul 14 17:26:58 2008 +0200 @@ -573,8 +573,8 @@ Type* t1 = DtoDType(exp1->type); Type* t2 = DtoDType(exp2->type); - assert(t1->ty == Tarray); - assert(t1->ty == t2->ty); + assert(t1->ty == Tarray || t1->ty == Tsarray); + assert(t2->ty == Tarray || t2->ty == Tsarray); DValue* e1 = exp1->toElem(gIR); DValue* e2 = exp2->toElem(gIR);