Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/mtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -3864,6 +3864,9 @@ d_uns64 TypeAArray::size(Loc loc)
Type *TypeAArray::semantic(Loc loc, Scope *sc)
{
//printf("TypeAArray::semantic() %s index->ty = %d\n", toChars(), index->ty);
if (deco)
return this;

this->loc = loc;
this->sc = sc;
if (sc)
Expand Down
23 changes: 10 additions & 13 deletions test/compilable/interpret3.d
Original file line number Diff line number Diff line change
Expand Up @@ -1108,21 +1108,18 @@ static assert(bug6001f());

// Assignment to AAs

version(X86)
void blah(int[char] as)
{
void blah(int[char] as)
{
auto k = [6: as];
as = k[6];
}
int blaz()
{
int[char] q;
blah(q);
return 67;
}
static assert(blaz()==67);
auto k = [6: as];
as = k[6];
}
int blaz()
{
int[char] q;
blah(q);
return 67;
}
static assert(blaz()==67);

void bug6001g(ref int[] w)
{
Expand Down