diff dmd/TypeSArray.d @ 126:1765f3ef917d

ClassDeclarations, Arguments -> Vector
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Fri, 03 Sep 2010 23:25:55 +0100
parents 347de076ad34
children 60bb0fe4563e
line wrap: on
line diff
--- a/dmd/TypeSArray.d	Fri Sep 03 22:17:54 2010 +0100
+++ b/dmd/TypeSArray.d	Fri Sep 03 23:25:55 2010 +0100
@@ -196,7 +196,7 @@
 			case TY.Ttuple:
 			{   // Index the tuple to get the type
 				assert(dim);
-				TypeTuple tt = cast(TypeTuple)tbn;
+				auto tt = cast(TypeTuple)tbn;
 				ulong d = dim.toUInteger();
 
 				if (d >= tt.arguments.dim)
@@ -204,7 +204,7 @@
 					error(loc, "tuple index %ju exceeds %u", d, tt.arguments.dim);
 					return Type.terror;
 				}
-				Argument arg = cast(Argument)tt.arguments.data[cast(size_t)d];
+				auto arg = tt.arguments[cast(size_t)d];
 				return arg.type;
 			}
 			case TY.Tstruct: