Skip to content

Commit

Permalink
Need more hack for bug 7757
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jan 22, 2013
1 parent f9d53eb commit 406ad56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/delegatize.c
Expand Up @@ -37,6 +37,7 @@ Expression *Expression::toDelegate(Scope *sc, Type *t)
Type *tw = t->semantic(loc, sc); Type *tw = t->semantic(loc, sc);
Type *tc = t->substWildTo(MODconst)->semantic(loc, sc); Type *tc = t->substWildTo(MODconst)->semantic(loc, sc);
TypeFunction *tf = new TypeFunction(NULL, tc, 0, LINKd); TypeFunction *tf = new TypeFunction(NULL, tc, 0, LINKd);
if (tw != tc) tf->mod = MODwild; // hack for bug7757
(tf = (TypeFunction *)tf->semantic(loc, sc))->next = tw; // hack for bug7757 (tf = (TypeFunction *)tf->semantic(loc, sc))->next = tw; // hack for bug7757
FuncLiteralDeclaration *fld = FuncLiteralDeclaration *fld =
new FuncLiteralDeclaration(loc, loc, tf, TOKdelegate, NULL); new FuncLiteralDeclaration(loc, loc, tf, TOKdelegate, NULL);
Expand Down

0 comments on commit 406ad56

Please sign in to comment.