Skip to content

Commit f01e537

Browse files
committed
Fix stack overflow in tests
Just calling parseAssignExpression instead of parseExpression in AA checking now, since that's what's being done in the parsing code anyway!
1 parent 3c67b88 commit f01e537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dparse/parser.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8400,7 +8400,7 @@ protected: final:
84008400
immutable b = setBookmark();
84018401
scope(exit) goToBookmark(b);
84028402
advance();
8403-
immutable bool result = !currentIs(tok!"]") && parseExpression() !is null && currentIs(tok!":");
8403+
immutable bool result = !currentIs(tok!"]") && parseAssignExpression() !is null && currentIs(tok!":");
84048404
cachedAAChecks[currentIndex] = result;
84058405
return result;
84068406
}

0 commit comments

Comments
 (0)