Mercurial > projects > ddmd
diff dmd/StructDeclaration.d @ 84:be2ab491772e
Expressions -> Vector!Expression
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:12:19 +0100 |
parents | 43073c7c7769 |
children | 8e69d041a99d |
line wrap: on
line diff
--- a/dmd/StructDeclaration.d Mon Aug 30 18:42:04 2010 +0400 +++ b/dmd/StructDeclaration.d Mon Aug 30 16:12:19 2010 +0100 @@ -263,8 +263,8 @@ FuncDeclaration fdptr = new FuncDeclaration(loc, loc, fdx.ident, STC.STCundefined, tfeqptr); Expression e = new IdentifierExp(loc, Id.p); e = new PtrExp(loc, e); - Expressions args = new Expressions(); - args.push(cast(void*)e); + auto args = new Expressions(); + args.push(e); e = new IdentifierExp(loc, id); e = new CallExp(loc, e, args); fdptr.fbody = new ReturnStatement(loc, e);