comparison dmd/StructInitializer.d @ 130:60bb0fe4563e

dmdfe 2.037 first main iteration
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 09 Sep 2010 22:51:44 +0100
parents e6e542f37b94
children af1bebfd96a4
comparison
equal deleted inserted replaced
129:010eb8f0e18d 130:60bb0fe4563e
150 } 150 }
151 else if (t.ty == Tdelegate && value.dim == 0) 151 else if (t.ty == Tdelegate && value.dim == 0)
152 { 152 {
153 /* Rewrite as empty delegate literal { } 153 /* Rewrite as empty delegate literal { }
154 */ 154 */
155 auto arguments = new Arguments; 155 auto arguments = new Parameters;
156 Type tf = new TypeFunction(arguments, null, 0, LINK.LINKd); 156 Type tf = new TypeFunction(arguments, null, 0, LINK.LINKd);
157 FuncLiteralDeclaration fd = new FuncLiteralDeclaration(loc, Loc(0), tf, TOK.TOKdelegate, null); 157 FuncLiteralDeclaration fd = new FuncLiteralDeclaration(loc, Loc(0), tf, TOK.TOKdelegate, null);
158 fd.fbody = new CompoundStatement(loc, new Statements()); 158 fd.fbody = new CompoundStatement(loc, new Statements());
159 fd.endloc = loc; 159 fd.endloc = loc;
160 Expression e = new FuncExp(loc, fd); 160 Expression e = new FuncExp(loc, fd);