Mercurial > projects > ddmd
diff dmd/TemplateDeclaration.d @ 90:39648eb578f6
more Expressions work
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 20:27:56 +0100 |
parents | b17640f0e4e8 |
children | 3a0b150c9841 acd69f84627e |
line wrap: on
line diff
--- a/dmd/TemplateDeclaration.d Mon Aug 30 19:58:14 2010 +0400 +++ b/dmd/TemplateDeclaration.d Mon Aug 30 20:27:56 2010 +0100 @@ -822,7 +822,7 @@ t.objects.setDim(tuple_dim); for (size_t i = 0; i < tuple_dim; i++) { - Expression farg = cast(Expression)fargs.data[fptupindex + i]; + auto farg = fargs[fptupindex + i]; t.objects.data[i] = cast(void*)farg.type; } declareParameter(paramscope, tp, t); @@ -893,7 +893,7 @@ } else { - Expression farg = cast(Expression)fargs.data[i]; + auto farg = fargs[i]; static if (false) { printf("\tfarg.type = %s\n", farg.type.toChars()); printf("\tfparam.type = %s\n", fparam.type.toChars()); @@ -968,7 +968,7 @@ TypeArray ta = cast(TypeArray)tb; for (; i < nfargs; i++) { - Expression arg = cast(Expression)fargs.data[i]; + auto arg = fargs[i]; assert(arg); MATCH m; /* If lazy array of delegates,