# HG changeset patch # User aziz # Date 1186128243 0 # Node ID 8118da6fee44c22a4258c1c85ac4437b631b489f # Parent 112a57f433f28a5512434fcfc5a7301fb9b220d8 - Moved nT() below statement where an attribute class is constructed. - Skip token after creating UndefinedType. diff -r 112a57f433f2 -r 8118da6fee44 trunk/src/Parser.d --- a/trunk/src/Parser.d Wed Aug 01 20:55:04 2007 +0000 +++ b/trunk/src/Parser.d Fri Aug 03 08:04:03 2007 +0000 @@ -604,8 +604,8 @@ goto Lcommon; Lcommon: addStorageClass(); + decl = new AttributeDeclaration(token.type, parse()); nT(); - decl = new AttributeDeclaration(token.type, parse()); break; case T.Identifier: // This could be a normal Declaration or an AutoDeclaration @@ -1787,8 +1787,8 @@ goto Lcommon; Lcommon: addStorageClass(); + s = new AttributeStatement(token.type, parse()); nT(); - s = new AttributeStatement(token.type, parse()); break; // TODO: allow "scope class", "abstract scope class" in function bodies? //case T.Class: @@ -3136,6 +3136,7 @@ // TODO: issue error msg. error(MID.ExpectedButFound, "BasicType", token.srcText); t = new UndefinedType(); + nT(); set(t, begin); } return t;