Skip to content

Commit

Permalink
Merge #432
Browse files Browse the repository at this point in the history
432: Specify how to treat ambigious trailing block statement r=Dajamante a=Veykril

Closes #355


Co-authored-by: Lukas Wirth <[email protected]>
  • Loading branch information
bors-ferrocene[bot] and Veykril authored Aug 7, 2023
2 parents b169ee0 + 194d801 commit 1399872
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,10 @@ An :t:`anonymous block expression` is a :t:`block expression` without a
A :t:`tail expression` is the last :t:`expression` within a :t:`block
expression`.

:dp:`fls_DfCne8YWevLE`
When the remaining :t:`[lexical element]s` of a :s:`StatementList` match either
an :s:`Expression` or :s:`Statement` they are interpreted as an :s:`Expression`.

:dp:`fls_u4gj2lnkq9ub`
The :t:`type` of a :t:`block expression` is determined as follows:

Expand Down

0 comments on commit 1399872

Please sign in to comment.