# HG changeset patch # User aziz # Date 1185552180 0 # Node ID 805796880adb1079e3d51da551b3082045cede23 # Parent e961d1b957c3162f122b0c1014f9ac91292fc449 - Fix in parseIfStatement(): require(T.Assign) must be encompassed by a try_() call. diff -r e961d1b957c3 -r 805796880adb trunk/src/Parser.d --- a/trunk/src/Parser.d Fri Jul 27 15:37:05 2007 +0000 +++ b/trunk/src/Parser.d Fri Jul 27 16:03:00 2007 +0000 @@ -1672,13 +1672,15 @@ else { // Declarator = Expression - bool success; - type = try_(parseDeclarator(ident), success); - if (success) + Type parseDeclaratorAssign() { + auto type = parseDeclarator(ident); require(T.Assign); + return type; } - else + bool success; + type = try_(parseDeclaratorAssign(), success); + if (!success) { type = null; ident = null;