Skip to content

Commit

Permalink
Fix stack overflow in tests
Browse files Browse the repository at this point in the history
Just calling parseAssignExpression instead of parseExpression in AA
checking now, since that's what's being done in the parsing code
anyway!
  • Loading branch information
WebFreak001 committed Apr 5, 2023
1 parent 3c67b88 commit f01e537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dparse/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -8400,7 +8400,7 @@ protected: final:
immutable b = setBookmark();
scope(exit) goToBookmark(b);
advance();
immutable bool result = !currentIs(tok!"]") && parseExpression() !is null && currentIs(tok!":");
immutable bool result = !currentIs(tok!"]") && parseAssignExpression() !is null && currentIs(tok!":");
cachedAAChecks[currentIndex] = result;
return result;
}
Expand Down

0 comments on commit f01e537

Please sign in to comment.