Skip to content

Commit

Permalink
merge D2 pull 507
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Nov 14, 2011
1 parent 129c1ae commit 5efdc4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -4678,7 +4678,7 @@ Expression *TypeStruct::dotExp(Scope *sc, Expression *e, Identifier *ident)
accessCheck(e->loc, sc, e, d);
ve = new VarExp(e->loc, d);
e = new CommaExp(e->loc, e, ve);
e->type = d->type;
e = e->semantic(sc);
return e;
}

Expand Down Expand Up @@ -5109,7 +5109,7 @@ Expression *TypeClass::dotExp(Scope *sc, Expression *e, Identifier *ident)
accessCheck(e->loc, sc, e, d);
ve = new VarExp(e->loc, d);
e = new CommaExp(e->loc, e, ve);
e->type = d->type;
e = e->semantic(sc);
return e;
}

Expand Down

0 comments on commit 5efdc4a

Please sign in to comment.