void main() { enum aa = [1 : 2, 2 : 4]; auto e = aa.length(); } -- This asserts in AssocArrayLiteralExp::toElem(IRState *irs) Type *t = type->toBasetype()->mutableOf(); assert(t->ty == Taarray); But the type of aa is AssociativeArray!(int,int), so t->ty is Tstruct.
Seems to be the same cause as issue 4460.
Patch in issue 4460 fixes this.
*** Issue 6324 has been marked as a duplicate of this issue. ***
*** Issue 6943 has been marked as a duplicate of this issue. ***
Works now. *** This issue has been marked as a duplicate of issue 4460 ***