Skip to content

Commit c42090d

Browse files
authored
Merge pull request #2501 from LaurentTreguier/do-contract-statements
Fix `do` being optional after a contract statement merged-on-behalf-of: Jacob Carlborg <jacob-carlborg@users.noreply.github.com>
2 parents 1ce2554 + 80fb1d5 commit c42090d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/function.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $(GNAME FunctionLiteralBody):
9999
$(GNAME SpecifiedFunctionBody):
100100
$(D do)$(OPT) $(GLINK2 statement, BlockStatement)
101101
$(GLINK FunctionContracts)$(OPT) $(GLINK InOutContractExpression) $(D do)$(OPT) $(GLINK2 statement, BlockStatement)
102-
$(GLINK FunctionContracts)$(OPT) $(GLINK InOutStatement) $(D do)$(OPT) $(GLINK2 statement, BlockStatement)
102+
$(GLINK FunctionContracts)$(OPT) $(GLINK InOutStatement) $(D do) $(GLINK2 statement, BlockStatement)
103103

104104
$(GNAME MissingFunctionBody):
105105
$(D ;)

0 commit comments

Comments
 (0)